15,978
社区成员
发帖
与我相关
我的任务
分享
BOOL CDlgBillInfo::OnInitDialog()
{
CDialog::OnInitDialog();
/* DoSomething */
GetDlgItem( IDC_EDIT_SHBILLNO )->SetFocus();
return FALSE; //除非将焦点设置到控件,否则返回TRUE
}
void CDlgBillInfo::OnBnClickedButtonQuery()
{
CDlgCustom dlg;
dlg.m_customHwnd = this->m_hWnd;
dlg.DoModal();
}
void CDlgCustom::OnBnClickedButtonOkCustom()
{
/* DoSomething */
SendMessage( WM_CLOSE, 0, 0 );
::SendMessage( m_customHwnd, WM_CUSTOMTOINFO_MESSAGE, 0, 0 );
}
LRESULT CDlgBillInfo::GetCustomToInfoMessage(WPARAM wParam, LPARAM lParam)
{
/* DoSomething */
GetDlgItem( IDC_EDIT_SHBILLNO )->SetFocus();
return 0;
}
void CDlgBillInfo::OnBnClickedButtonQuery()
{
CDlgCustom dlg;
dlg.DoModal();
GetDlgItem( IDC_EDIT_SHBILLNO )->SetFocus();
}
void CDlgBillInfo::OnBnClickedButtonQuery()
{
CDlgCustom dlg;
dlg.m_customHwnd = this->m_hWnd;
dlg.DoModal();
GetDlgItem( IDC_EDIT_SHBILLNO )->SetFocus();
}