void CMFCApplication12Dlg::OnBnClickedDateCheck4
TODO:
UpdateDataTRUE;
if mDateCheckTRUE
CTime tNow;
tNowCTime::GetCurrentTime;
CString sNowtNow.Formaty.m.d;
mDateEdit.SetSel0, 1;
mDateEdit.ReplaceSelsNow;
else
mDateEdit.SetSel0, 1;
mDateEdit.ReplaceSelL;
UpdateDataFALSE;
void CMFCApplication12Dlg::OnBnClickedTimeCheck5
TODO:
UpdateDataTRUE;
if mTimeCheckTRUE
CTime tNow;
tNowCTime::GetCurrentTime;
CString sNowtNow.FormatI.M.S;
mTimeEdit.SetSel0, 1;
mTimeEdit.ReplaceSelsNow;
else
mTimeEdit.SetSel0, 1;
mTimeEdit.ReplaceSelL;
UpdateDataFALSE;
void CMFCApplication12Dlg::OnBnClickedEnableButton1
TODO:
GetDlgItemIDCDATECHECK4EnableWindowTRUE;
GetDlgItemIDCTIMECHECK5EnableWindowTRUE;
mDateEdit.EnableWindowTRUE;
mTimeEdit.EnableWindowTRUE;
void CMFCApplication12Dlg::OnBnClickedDisableButton2
TODO:
GetDlgItemIDCDATECHECK4EnableWindowFALSE;
GetDlgItemIDCTIMECHECK5EnableWindowFALSE;
mDateEdit.EnableWindowFALSE;
mTimeEdit.EnableWindowFALSE;
void CMFCApplication12Dlg::OnBnClickedShowButton3
TODO:
GetDlgItemIDCDATECHECK4EnableWindowSWSHOW;
GetDlgItemIDCTIMECHECK5EnableWindowSWSHOW;
mDateEdit.EnableWindowSWSHOW;
mTimeEdit.EnableWindowSWSHOW;
void CMFCApplication12Dlg::OnBnClickedHideButton4
TODO:
GetDlgItemIDCDATECHECK4EnableWindowSWHIDE;
GetDlgItemIDCTIMECHECK5EnableWindowSWHIDE;
mDateEdit.EnableWindowSWHIDE;
mTimeEdit.EnableWindowSWHIDE;
void CMFCApplication12Dlg::OnBnClickedShowGenderAgeButton5
TODO:
TCHAR sEdit50;
int iSexRADIO;
int iAgeRADIO;
iSexRADIOGetCheckedRadioButtonIDCBOYRADIO2, IDCGIRLRADIO3;
if iSexRADIOIDCBOYRADIO2
wcscpyssEdit, LThe boys age is;
if iSexRADIOIDCGIRLRADIO3
wcscpyssEdit, LThe girls age is;
iAgeRADIOGetCheckedRadioButtonIDCAGE1RADIO4, IDCAGE3RADIO6;
if iAgeRADIOIDCAGE1RADIO4
wcscatssEdit, Lgreater than 20;
if iAgeRADIOIDCAGE2RADIO5
wcscatssEdit, Lbetween 15 and 20;
if iAgeRADIOIDCAGE3RADIO6
wcscatssEdit, Lless than 15;
mResultEdit.SetSel0, 1;
mResultEdit.ReplaceSelsEdit;
void CMFCApplication12Dlg::OnBnClickedShowRecordButton6
TODO:
UpdateDataTRUE;
TCHAR sCourseEdit30;
TCHAR sRecordEdit15;
int iCourseRadio;
iCourseRadioGetCheckedRadioButtonIDCENGLISHRADIO7, IDCNATURERADIO9;
if iCourseRadioIDCENGLISHRADIO7
wcscpyssCourseEdit, LEnglish record is;
if iCourseRadioIDCVCRADIO8
wcscpyssCourseEdit, LVC record is;
if iCourseRadioIDCNATURERADIO9
wcscpyssCourseEdit, LNatural record is;
mRecord.GetWindowTextsRecordEdit, 15;
wcscatssCourseEdit, L;
wcscatssCourseEdit, sRecordEdit;
mComboEditsCourseEdit;
UpdateDataFALSE;
void CMFCApplication12Dlg::OnCbnSelchangeShowWeekdayCombo7
TODO:
CString msg;
mcb.GetLBTextmcb.GetCurSel, msg;
AfxMessageBoxmsg;
void CMFCApplication12Dlg::OnBnClickedExitButton1
TODO:
OnOK;
For redio buttons
CheckRadioButtonIDCBOYRADIO2,IDCGIRLRADIO3,IDCBOYRADIO2;
CheckRadioButtonIDCAGE1RADIO4, IDCAGE3RADIO6, IDCAGE2RADIO5;
For Records
mEnglish0;
mRecord.AddStringL85;
mRecord.AddStringL90;
mRecord.AddStringL95;
mRecord.SelectString1, L95;
For ComboBox
mcb.AddStringLMonday;
mcb.AddStringLTuesday;
mcb.AddStringLWednesday;
mcb.AddStringLThursday;
mcb.AddStringLFriday;
mcb.AddStringLSaturday;
mcb.AddStringLSunday;
UpdateDataFALSE;
Reviews
There are no reviews yet.