I tried a tutorial about C and ATL about a basic dialog. It has a window, and 2 buttons inside. In the beginning of the tutorial, there are 2 buttons and they all exit the application. But, these 2 buttons are created by default. So, I tried creating another button that can exit the application, and I failed.
My aim is to use radio buttons with this project. I want to create some radio buttons and when I press a button, I want to execute some commands.
Here are the links – In my opinion, the tutorial link is unrelated, but I guess it won’t hurt: Tutorial, Working Project, Problematic Project.
Thanks in advance.
IDC_MYBUTT#definefor the chosen constantIDC_MYBUTTinresource.hfile on the projectCOMMAND_ID_HANDLERmacros on Sample ATL Dialog Window code, which connect the event (underlyingWM_COMMANDmessage sent to the window) with specific method (bothIDOKandIDCANCELbuttons executeOnCommandin the sample code).COMMAND_HANDLER,COMMAND_ID_HANDLERand friends are described on MSDN: Message Map Macros (ATL).