change button caption at runtime with code

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Dec 2004
Posts: 8
Reputation: mehdy is an unknown quantity at this point 
Solved Threads: 0
mehdy mehdy is offline Offline
Newbie Poster

change button caption at runtime with code

 
0
  #1
Mar 29th, 2005
how i can change buttons control caption at runtime (with code)
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 8
Reputation: mehdy is an unknown quantity at this point 
Solved Threads: 0
mehdy mehdy is offline Offline
Newbie Poster

Re: change button caption at runtime with code

 
0
  #2
Mar 29th, 2005
with send windows message handlers
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 199
Reputation: Tight_Coder_Ex is an unknown quantity at this point 
Solved Threads: 14
Tight_Coder_Ex's Avatar
Tight_Coder_Ex Tight_Coder_Ex is offline Offline
Junior Poster

Re: change button caption at runtime with code

 
0
  #3
Mar 29th, 2005
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 *)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 4047 | Replies: 2
Thread Tools Search this Thread



Tag cloud for C
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC