void CUSB_CamDlg::OnAddLogo() { // TODO: Add your control notification handler code here CButton* ck=(CButton*) GetDlgItem(IDC_CHECK1); if(ck->GetCheck()) Add_Logo_Flg=1; else Add_Logo_Flg=0; }