Link to home
Start Free TrialLog in
Avatar of RandyG
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);
}

ASKER CERTIFIED SOLUTION
Avatar of WxW
WxW

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RandyG
RandyG

ASKER

Once again this service is great.

WxW's answer was very prompt and helpful.

Thanks