소스 검색

窗口创建、销毁的逻辑有点问题,再看一下

张洋 6 년 전
부모
커밋
8c0b0eb13c

BIN
bin/Win32/Debug/zhipuzi_pay_plugin/zpzDll.dll


+ 4 - 1
zhipuzi_pay_plugin/wnd/CLoginWnd.cpp

@@ -529,6 +529,7 @@ void CLoginWnd::HandleLogin()
 		//把用户名和密码保存起来
 		CSetting::SetLoginInfo(s_account, s_password);
 
+/*
 		//开始处理获取账号权限的逻辑
 		std::map<string, string> params;
 
@@ -611,7 +612,7 @@ void CLoginWnd::HandleLogin()
 
 		std::string shopname = shop_name.GetString();
 
-		CZhipuziHttpClient::m_client.m_shopname = shopname;
+		CZhipuziHttpClient::m_client.m_shopname = shopname;*/
 
 		PostMessage(WM_LOGIN_SUCCESS);
 
@@ -643,6 +644,8 @@ void CLoginWnd::LoginSuccess()
     Close();
 
 	UINT ret = pFrame->ShowModal();
+	
+	int a = 1;
 }
 
 void CLoginWnd::LoginError()

+ 2 - 0
zhipuzi_pay_plugin/wnd/CValueWnd.cpp

@@ -364,6 +364,8 @@ LRESULT CValueWnd::OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandl
  **/
 LRESULT CValueWnd::OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
 {
+	Shell_NotifyIcon(NIM_DELETE, &m_trayIcon);
+
 	UnregisterHotKey(m_hWnd, WM_MYHOTKEY_SHOUKUAN);
 
     bHandled = FALSE;

+ 2 - 0
zhipuzi_pay_plugin/zhipuzi_pay_plugin.cpp

@@ -51,6 +51,8 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
     pLogin->CenterWindow();
     pLogin->ShowModal();
 
+	int b = 1;
+
     CPaintManagerUI::MessageLoop();
 
     ::CoUninitialize();