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.
There are also some handy macros in windowsx.h
ie
idControl = GET_WM_COMMAND_ID(wParam,lParam) ;