944,052 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 4908
  • C RSS
Mar 29th, 2005
0

change button caption at runtime with code

Expand Post »
how i can change buttons control caption at runtime (with code)
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mehdy is offline Offline
8 posts
since Dec 2004
Mar 29th, 2005
0

Re: change button caption at runtime with code

with send windows message handlers
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mehdy is offline Offline
8 posts
since Dec 2004
Mar 29th, 2005
0

Re: change button caption at runtime with code

There are subtle differences between these two methods, so you may want to check out in detail which one suites your purposes. In any case either will work.
  1. SendMessage (hWnd, WM_SETTEXT, 0, char *);
or
  1. SetWindowText (hWnd, char *)
Reputation Points: 47
Solved Threads: 17
Posting Whiz in Training
Tight_Coder_Ex is offline Offline
215 posts
since Feb 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: Problem with moving integers to a single formatted string
Next Thread in C Forum Timeline: a problem wilth C program





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC