Changeset 21808 for branches/gcc-kmk/src/user32/win32wbase.cpp
- Timestamp:
- Nov 14, 2011, 11:03:47 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/src/user32/win32wbase.cpp
r21720 r21808 64 64 #include <wprocess.h> 65 65 #include <win/hook.h> 66 #include <menu.h>66 #include "menu.h" 67 67 #define INCL_TIMERWIN32 68 68 #include "timer.h" … … 79 79 void PrintWindowStyle(DWORD dwStyle, DWORD dwExStyle); 80 80 81 static fDestroyAll = FALSE;81 static BOOL fDestroyAll = FALSE; 82 82 //For quick lookup of current process id 83 83 static ULONG currentProcessId = -1; … … 308 308 { 309 309 dprintf2(("IsWindowUnicode %x %d", getWindowHandle(), WINPROC_GetProcType(getWindowProc()) == WIN_PROC_32W)); 310 return (WINPROC_GetProcType( getWindowProc()) == WIN_PROC_32W);310 return (WINPROC_GetProcType((HWINDOWPROC)getWindowProc()) == WIN_PROC_32W); 311 311 } 312 312 //****************************************************************************** … … 461 461 } 462 462 463 WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, windowClass->getWindowProc((isUnicode) ? WNDPROC_UNICODE : WNDPROC_ASCII), WINPROC_GetProcType(windowClass->getWindowProc((isUnicode) ? WNDPROC_UNICODE : WNDPROC_ASCII)), WIN_PROC_WINDOW); 463 WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, 464 windowClass->getWindowProc((isUnicode) ? WNDPROC_UNICODE : WNDPROC_ASCII), 465 WINPROC_GetProcType((HWINDOWPROC)windowClass->getWindowProc((isUnicode) ? WNDPROC_UNICODE : WNDPROC_ASCII)), 466 WIN_PROC_WINDOW); 464 467 hInstance = cs->hInstance; 465 468 dwStyle = cs->style & ~WS_VISIBLE; … … 3860 3863 type = (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A; 3861 3864 } 3862 oldval = (LONG)WINPROC_GetProc( win32wndproc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);3865 oldval = (LONG)WINPROC_GetProc((HWINDOWPROC)win32wndproc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A); 3863 3866 dprintf(("SetWindowLong%c GWL_WNDPROC %x old %x new wndproc %x", (fUnicode) ? 'W' : 'A', getWindowHandle(), oldval, value)); 3864 3867 WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, (WNDPROC)value, type, WIN_PROC_WINDOW); … … 3916 3919 break; 3917 3920 case GWL_WNDPROC: 3918 value = (LONG)WINPROC_GetProc( win32wndproc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);3921 value = (LONG)WINPROC_GetProc((HWINDOWPROC)win32wndproc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A); 3919 3922 break; 3920 3923 case GWL_HINSTANCE: … … 4115 4118 { 4116 4119 lock(&critsect); 4117 for(int i=0;i<MAX_OPENDCS;i++) { 4120 int i; 4121 for(i=0;i<MAX_OPENDCS;i++) { 4118 4122 if(hdcWindow[i] == 0) { 4119 4123 hdcWindow[i] = hdc; … … 4154 4158 } 4155 4159 lock(&critsect); 4156 for(int i=0;i<MAX_OPENDCS;i++) { 4160 int i; 4161 for(i=0;i<MAX_OPENDCS;i++) { 4157 4162 if(hdcWindow[i] == hdc) { 4158 4163 hdcWindow[i] = 0;
Note:
See TracChangeset
for help on using the changeset viewer.