BOOL CPagePowerManagement::OnSetActive()
{
	InfWizardDlg* pSheet = (InfWizardDlg*)GetParent();
	ASSERT_KINDOF(InfWizardDlg, pSheet);

	FillForm();

	DWORD dwBtns = 0;
	dwBtns |= pSheet->m_BackDlgID != -1 ? PSWIZB_BACK : 0;
	dwBtns |= pSheet->m_NextDlgID != -1 ? PSWIZB_NEXT : 0;
	pSheet->SetWizardButtons(dwBtns);

	return CResizablePageEx::OnSetActive();
}
Exemple #2
0
BOOL CDlgMsg2958::OnInitDialog()
{
	CDlgWithAccelerators::OnInitDialog();

	m_EdPr.QInit(40, 1);
	m_Dat.SetMode(3, 1);
	m_Dat.SetTime(&stDat);
	m_Dat.ModifyStyle(0, WS_DISABLED, 0);
	for( int i=0; i < 8; i++ )
	{
		m_Ed[0][i].SetMode(0, 1, 10);
		m_Ed[2][i].QInit(60, 1);
		m_Ed[4][i].QInit(60, 1);
		m_Ed[5][i].QInit(60, 1);

		m_Ed[1][i].QInit(50, 1);
		m_Ed[3][i].QInit(50, 1);
		m_Ed[6][i].QInit(50, 1);
		for(int x=8; x < 18; x++ )
		{
			m_Ed[x][i].QInit(50, 1);
		}
		m_Ed[7][i].QInit(40, 1);
	}
	m_Ed[0][0].SetWindowText("01-Деп");
	m_Ed[0][2].SetWindowText("02-Кап");
	m_Ed[0][4].SetWindowText("03-ТР");
	m_Ed[0][6].SetWindowText("04-Всего");
	
	m_Ed[0][0].ModifyStyle(0, WS_DISABLED, 0);
	m_Ed[0][2].ModifyStyle(0, WS_DISABLED, 0);
	m_Ed[0][4].ModifyStyle(0, WS_DISABLED, 0);
	m_Ed[0][6].ModifyStyle(0, WS_DISABLED, 0);
	
	for( int i=1; i < 18; i++ )
		m_Ed[i][6].ModifyStyle(0, WS_DISABLED, 0);

	FillForm();
	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}