Esempio n. 1
0
BOOL CINSTOCKQUERY::OnInitDialog() 
{
	CDialog::OnInitDialog();
	SetListStyle();
	InitDate();
	m_comquery.SetCurSel(0);
	m_comquery.EnableWindow(false);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
void CCardopenConsumeView::OnSize(UINT nType, int cx, int cy)
{
	MoveWindow(0, 0, cx, cy, FALSE);

	if (m_InfoList.GetSafeHwnd() != NULL)
	{
		m_InfoList.MoveWindow(10, 100, cx - 20, cy - 105, TRUE);

		InitDate();
	}
}
void CCardopenConsumeView::OnInitialUpdate()
{
	CIBAFormView::OnInitialUpdate();

	m_STATICResult.SetFont(&m_Font);
	m_STATICResult.SetWindowText(_T(""));

	InitTimeCtrl();

	InitDate();

	InitList();

	GetDlgItem(IDC_BUTTON_QUERY)->SetFocus();

	// 2011/12/28-8236-gxx: 自动查询一次
	OnBnClickedButtonQuery();
}