zhangyang 4 years ago
parent
commit
84d7a9cfaa

BIN
bin/Win32/Debug/zhipuzi_pos_windows/db/pos.db


+ 0 - 2
zhipuzi_pos_windows/control/CFoodlistUI.cpp

@@ -33,8 +33,6 @@ void CFoodlistUI::Refresh(int nType)
 	this->SetChildPadding(20);
 	this->SetChildVPadding(20);
 
-	this->
-
 	for (int i = 0; i < 50; ++i)
 	{
 		//´´½¨Ò»¸ö¶ÔÏó

+ 4 - 8
zhipuzi_pos_windows/wnd/CLoginWnd.cpp

@@ -196,14 +196,7 @@ LRESULT CLoginWnd::OnNcPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHan
 	CEditUI* pAccountEdit = static_cast<CEditUI*>(m_pm.FindControl(_T("accountedit")));
 	if (pAccountEdit)
 	{
-		//下一个焦点的,就设置为这个控件
-		m_pm.SetFocusNeeded(pAccountEdit);
-
-		//用户名设置为焦点
 		pAccountEdit->SetFocus();
-
-		//这个干嘛的不知道,但是不加好像不行
-		//m_pm.SetNextTabControl(false);
 	}
 
 	return 0;
@@ -316,7 +309,10 @@ LRESULT CLoginWnd::MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, bool&
                 }
                 else
                 {
-                    this->HandleLogin();
+					//这里如果不把焦点设置为窗口,登录的时候会显示输入框(好像是个bug?获得焦点的控件无法隐藏?)
+					SetFocus(this->GetHWND());
+
+					this->StartLogin();
                 }
             }
             return true;