Hi, I was wondering how do you assign "ID numbers" to buttons and stuff, so that when the WM_COMMAND is sent to the OS, you can use so that different buttons do different things??? :D
Printable View
Hi, I was wondering how do you assign "ID numbers" to buttons and stuff, so that when the WM_COMMAND is sent to the OS, you can use so that different buttons do different things??? :D
like if you have 4 different buttons in a program on a window, how would you make each button do different things?
Use the hMenu parameter of CreateWindow() - or you can use SetWindowLong() to change the ID of a window after it's been created.
http://www.winprog.org/tutorial/
gg
Another option is to use a resource script to create your GUI interfaces.