Example #1
0
BOOL CWHCalendarPicturePage::OnInitDialog() 
{
	CWHelpPropertyPage::OnInitDialog();
	
	UpdateCBitmap();	
	FixControls();
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
Example #2
0
BOOL CMultiplay::OnInitDialog() 
{
		CDialog::OnInitDialog();

		if (!theApp.recording_ && theApp.mac_.size() > 0)
			name_ctrl_.AddString(DEFAULT_MACRO_NAME);

		// Find all .hem files in macro dir
		CFileFind ff;
		ASSERT(theApp.mac_dir_.Right(1) == "\\");
		BOOL bContinue = ff.FindFile(theApp.mac_dir_ + "*.hem");

		while (bContinue)
		{
			// At least one match - check them all
			bContinue = ff.FindNextFile();

			// Hide macro files beginning with underscore unless recording.
			// This is so that "sub-macros" are not normally seen but can be
			// selected when recording a macro that invokes them.
			if (theApp.recording_ || ff.GetFileTitle().Left(1) != "_")
				name_ctrl_.AddString(ff.GetFileTitle());
		}
		ASSERT(name_ctrl_.GetCount() > 0);
		name_ctrl_.SetCurSel(0);

		ASSERT(GetDlgItem(IDC_SPIN_PLAYS) != NULL);
		((CSpinButtonCtrl *)GetDlgItem(IDC_SPIN_PLAYS))->SetRange(1, UD_MAXVAL);

		ASSERT(GetDlgItem(IDC_PLAYS) != NULL);
		ASSERT(GetDlgItem(IDC_DESC_PLAYS) != NULL);
		ASSERT(GetDlgItem(IDC_SPIN_PLAYS) != NULL);
		GetDlgItem(IDC_PLAYS)->EnableWindow(!theApp.recording_);
		GetDlgItem(IDC_DESC_PLAYS)->EnableWindow(!theApp.recording_);
		GetDlgItem(IDC_SPIN_PLAYS)->EnableWindow(!theApp.recording_);
		FixControls();

		return TRUE;
}
Example #3
0
void CWHCalendarPicturePage::OnPictureYes() 
{
	UpdateCBitmap();
	FixControls();
}
Example #4
0
void CMultiplay::OnSelchangePlayName()
{
	FixControls();
}