Changeset 21916 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Dec 18, 2011, 10:28:22 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 bin 2 Makefile.inc 1 env.cmd 2 LocalConfig.kmk
-
-
Property svn:mergeinfo
set to
/branches/gcc-kmk merged eligible
- Property svn:ignore
-
trunk/src/user32/win32wbase.cpp
r21641 r21916 63 63 #include "controls.h" 64 64 #include <wprocess.h> 65 #include <win \hook.h>66 #include <menu.h>65 #include <win/hook.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; … … 307 307 BOOL Win32BaseWindow::IsWindowUnicode() 308 308 { 309 dprintf2(("IsWindowUnicode %x %d", getWindowHandle(), WINPROC_GetProcType(getWindowProc()) == WIN_PROC_32W)); 310 return (WINPROC_GetProcType(getWindowProc()) == WIN_PROC_32W); 309 dprintf2(("IsWindowUnicode %x %d", getWindowHandle(), 310 WINPROC_GetProcType((HWINDOWPROC)getWindowProc()) == WIN_PROC_32W)); 311 return (WINPROC_GetProcType((HWINDOWPROC)getWindowProc()) == WIN_PROC_32W); 311 312 } 312 313 //****************************************************************************** … … 461 462 } 462 463 463 WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, windowClass->getWindowProc((isUnicode) ? WNDPROC_UNICODE : WNDPROC_ASCII), WINPROC_GetProcType(windowClass->getWindowProc((isUnicode) ? WNDPROC_UNICODE : WNDPROC_ASCII)), WIN_PROC_WINDOW); 464 WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, 465 windowClass->getWindowProc((isUnicode) ? WNDPROC_UNICODE : WNDPROC_ASCII), 466 WINPROC_GetProcType((HWINDOWPROC)windowClass->getWindowProc((isUnicode) ? WNDPROC_UNICODE : WNDPROC_ASCII)), 467 WIN_PROC_WINDOW); 464 468 hInstance = cs->hInstance; 465 469 dwStyle = cs->style & ~WS_VISIBLE; … … 3860 3864 type = (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A; 3861 3865 } 3862 oldval = (LONG)WINPROC_GetProc( win32wndproc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);3866 oldval = (LONG)WINPROC_GetProc((HWINDOWPROC)win32wndproc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A); 3863 3867 dprintf(("SetWindowLong%c GWL_WNDPROC %x old %x new wndproc %x", (fUnicode) ? 'W' : 'A', getWindowHandle(), oldval, value)); 3864 3868 WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, (WNDPROC)value, type, WIN_PROC_WINDOW); … … 3916 3920 break; 3917 3921 case GWL_WNDPROC: 3918 value = (LONG)WINPROC_GetProc( win32wndproc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);3922 value = (LONG)WINPROC_GetProc((HWINDOWPROC)win32wndproc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A); 3919 3923 break; 3920 3924 case GWL_HINSTANCE: … … 4115 4119 { 4116 4120 lock(&critsect); 4117 for(int i=0;i<MAX_OPENDCS;i++) { 4121 int i; 4122 for(i=0;i<MAX_OPENDCS;i++) { 4118 4123 if(hdcWindow[i] == 0) { 4119 4124 hdcWindow[i] = hdc; … … 4154 4159 } 4155 4160 lock(&critsect); 4156 for(int i=0;i<MAX_OPENDCS;i++) { 4161 int i; 4162 for(i=0;i<MAX_OPENDCS;i++) { 4157 4163 if(hdcWindow[i] == hdc) { 4158 4164 hdcWindow[i] = 0; … … 4294 4300 //****************************************************************************** 4295 4301 //****************************************************************************** 4296 LONG Win32BaseWindow::release(c har *function, int line)4302 LONG Win32BaseWindow::release(const char *function, int line) 4297 4303 { 4298 4304 // dprintf2(("release %s %d %x %d", function, line, getWindowHandle(), getRefCount()-1));
Note:
See TracChangeset
for help on using the changeset viewer.