How exactly do you extract the wParam and lParam from the WM_COMMAND function so that if you have a group of buttons etc, you can respond differently to all the other buttons, thanks in advance...
How exactly do you extract the wParam and lParam from the WM_COMMAND function so that if you have a group of buttons etc, you can respond differently to all the other buttons, thanks in advance...
Check out WM_COMMAND on msdn.
Look up BN_CLICKED notification on msdn.
Read this thread, for example, and search this board for others.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
There are also some handy macros in windowsx.h
ie
idControl = GET_WM_COMMAND_ID(wParam,lParam) ;
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill