Changeset 354 for Daodan/src
- Timestamp:
- Jun 18, 2009, 2:30:27 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/Daodan_WindowHack.c
r351 r354 9 9 volatile HWND onihwnd, boxhwnd = NULL; 10 10 int inclient = 0; 11 int dragging = 0; 11 12 12 13 LRESULT CALLBACK DDrHack_WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) … … 41 42 PostQuitMessage(0); 42 43 ExitProcess(0); 44 break; 45 case WM_ENTERSIZEMOVE: 46 dragging = 1; 47 break; 48 case WM_EXITSIZEMOVE: 49 dragging = 0; 43 50 break; 44 51 default: … … 117 124 BOOL WINAPI LIiP_GetCursorPosHook(LPPOINT lpPoint) 118 125 { 119 if (GetAsyncKeyState(VK_F4) )126 if (GetAsyncKeyState(VK_F4) || dragging) 120 127 { 121 128 lpPoint->x = gl->DisplayMode.Width / 2; … … 134 141 BOOL WINAPI LIiP_SetCursorPosHook(int X, int Y) 135 142 { 136 if (GetAsyncKeyState(VK_F4) )143 if (GetAsyncKeyState(VK_F4) || dragging) 137 144 return TRUE; 138 145 else
Note:
See TracChangeset
for help on using the changeset viewer.