RandyG
asked on
BS_AUTOCHECKBOX
I would like to get the AUTOCHECKBOX Button to perform one task when Checked and yet another when Unchecked.
The following peice of my program writes "on" to a result window when it is clicked on. I would like for it to write "off" to the same result window when it is clicked off.
I would appreciate any help.
Thanks
Randy
BEGIN_MESSAGE_MAP( CWindow, CFrameWnd )
ON_BN_CLICKED(IDC_BUTTON2, HandleButton2)
END_MESSAGE_MAP()
// Handle the r_cont button
void CWindow::HandleButton2()
{
char x_dir[ ] = "on";
SetDlgItemText(IDC_RESULT5 ,x_dir);
}
The following peice of my program writes "on" to a result window when it is clicked on. I would like for it to write "off" to the same result window when it is clicked off.
I would appreciate any help.
Thanks
Randy
BEGIN_MESSAGE_MAP( CWindow, CFrameWnd )
ON_BN_CLICKED(IDC_BUTTON2,
END_MESSAGE_MAP()
// Handle the r_cont button
void CWindow::HandleButton2()
{
char x_dir[ ] = "on";
SetDlgItemText(IDC_RESULT5
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
WxW's answer was very prompt and helpful.
Thanks