Click to See Complete Forum and Search --> : Greying out win32 buttons


DasBruce
September 27th, 2005, 09:57 PM
I was wondering how I'd go about greying out a button I've created with CreateWindow(), and, predictably, how to ungrey it out?

Thanks

PeejAvery
September 27th, 2005, 10:03 PM
What language are you talking about? You could probably just disable and then re-enable it when needed.

DasBruce
September 27th, 2005, 10:09 PM
C++. And how would I go about acheiving that?

PeejAvery
September 27th, 2005, 10:10 PM
I am not sure. I work with Visual Basic. Try posting in the C++ forums.

lone_samurai5
September 28th, 2005, 12:57 PM
U could use EnableWindow

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/enablewindow.asp