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???
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???
like if you have 4 different buttons in a program on a window, how would you make each button do different things?
All Your Base Are Still Belong to Someone!!!
And you Remember that!!!
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.