|
|
@@ -136,6 +136,16 @@ void CLoginWnd::Notify(TNotifyUI& msg)
|
|
|
pPassword->SetText(wspassword.c_str());
|
|
|
}
|
|
|
}
|
|
|
+ else if (msg.sType == L"windowinit")
|
|
|
+ {
|
|
|
+ m_pm.SetNextTabControl(false);
|
|
|
+
|
|
|
+ CEditUI* pAccountEdit = static_cast<CEditUI*>(m_pm.FindControl(_T("accountedit")));
|
|
|
+ if (pAccountEdit)
|
|
|
+ {
|
|
|
+ pAccountEdit->SetFocus();
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
LRESULT CLoginWnd::OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
|
|
|
@@ -195,13 +205,6 @@ LRESULT CLoginWnd::OnNcCalcSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& b
|
|
|
|
|
|
LRESULT CLoginWnd::OnNcPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
|
|
|
{
|
|
|
- //在这里设置焦点才有用
|
|
|
- CEditUI* pAccountEdit = static_cast<CEditUI*>(m_pm.FindControl(_T("accountedit")));
|
|
|
- if (pAccountEdit)
|
|
|
- {
|
|
|
- pAccountEdit->SetFocus();
|
|
|
- }
|
|
|
-
|
|
|
return 0;
|
|
|
}
|
|
|
|