From dcf2c4a8c989a944289e38823e51934c3f06e47a Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Fri, 25 Feb 2022 18:56:34 +0800 Subject: [PATCH] work save --- redpanda-win-git-askpass/main.c | 14 ++++---------- .../redpanda-win-git-askpass.pro | 6 ++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/redpanda-win-git-askpass/main.c b/redpanda-win-git-askpass/main.c index edd24e47..bca247ba 100644 --- a/redpanda-win-git-askpass/main.c +++ b/redpanda-win-git-askpass/main.c @@ -5,9 +5,9 @@ HINSTANCE hInst; -LRESULT MainDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam); +LRESULT CALLBACK MainDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam); -LRESULT TxtPasswordWndProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam); +LRESULT CALLBACK TxtPasswordWndProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam); WNDPROC lpfnTxtPasswordWndProc=NULL; HWND hMainDlg = NULL; @@ -51,7 +51,7 @@ LRESULT CALLBACK TxtPasswordWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM l return CallWindowProc(lpfnTxtPasswordWndProc, hwnd, msg, wParam, lParam); } -LRESULT MainDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { +LRESULT CALLBACK MainDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_INITDIALOG : return TRUE ; @@ -63,12 +63,6 @@ LRESULT MainDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { return TRUE ; } break ; - case WM_KEYUP: - printf("%d\n",wParam); - if (wParam == VK_RETURN) { - DestroyWindow(hDlg); - } - break; case WM_CLOSE: DestroyWindow(hDlg); return TRUE; @@ -76,5 +70,5 @@ LRESULT MainDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { PostQuitMessage(0); return TRUE; }; - return FALSE;//返回FALSE给缺省对话框函数DefDlgProc(),表示没有处理本消息 + return FALSE; } diff --git a/redpanda-win-git-askpass/redpanda-win-git-askpass.pro b/redpanda-win-git-askpass/redpanda-win-git-askpass.pro index b7dd06ae..009476e6 100644 --- a/redpanda-win-git-askpass/redpanda-win-git-askpass.pro +++ b/redpanda-win-git-askpass/redpanda-win-git-askpass.pro @@ -20,3 +20,9 @@ win32: { target.path = $${PREFIX} } } + + +# Default rules for deployment. +qnx: target.path = $${PREFIX}/libexec/$${APP_NAME} +else: unix:!android: target.path = $${PREFIX}/libexec/$${APP_NAME} +!isEmpty(target.path): INSTALLS += target \ No newline at end of file