I have a button. How would I get a button's identifier so I can use BN_CLICKED?
I have a button. How would I get a button's identifier so I can use BN_CLICKED?
Website(s): http://www16.brinkster.com/trifaze/
E-mail: [email protected]
---------------------------------
C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
DirectX Version: 9.0b
DX SDK: DirectX 8.1 SDK
How did you get the button?
Create it in the resource editor?
if so you should have its ID. (You created its ID when you created it)
Coded it on the fly with CreateWindow ect?
The HMENU of CreateWindow should be set as the ID
eg (HMENU)ID_MYBUTTON
This is in WIN32 API with DevStudio (VC)
adn if you want the hWnd, you can get it after you call CreateWindow, or its equivalent in MFC
Oskilian