Enable and disable buttons

Discuss topics that apply across the products, such as the PocketC language, or development in general

Postby FrappyDan on Thu Jan 16, 2003 2:32 am

How do you get this message accross to the button? I have been unsuccessful getting the WS_ENABLE or WS_VISIBLE to a button. I don't see such an equivelent for button messages except BM_DISABLE, I think it was. 8)I need a bit of help here.

FrappyDan
FrappyDan
FrappyDan
 
Posts: 16
Joined: Mon Nov 25, 2002 4:09 am
Location: USA

Postby guy on Thu Jan 16, 2003 8:21 am

You use the EnableWindow() function. You can't do it with messages.

EnableWindow(gethwnd(guiid), 0) ; // Disable
EnableWindow(gethwnd(guiid), 1) ; // Enable

EnableWindow() is defined in winuser.h



Guy
[url]mailto:pcform@pcform.net[/url]
http://www.pcform.net
PocketC CE API interface: http://www.networkdynamics.net/PCForm.html#library
PCForm and CE API forum: http://www.networkdynamics.net/forum
Guy
[url]mailto:pcform@pcform.net[/url]
http://www.pcform.net
PocketC CE API interface: http://www.networkdynamics.net/PCForm.html#library
PCForm and CE API forum: http://www.networkdynamics.net/forum
guy
 
Posts: 879
Joined: Thu Dec 07, 2000 8:58 am
Location: United Kingdom


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron