Changeset 21808 for branches/gcc-kmk/src
- Timestamp:
- Nov 14, 2011, 11:03:47 PM (14 years ago)
- Location:
- branches/gcc-kmk/src/user32
- Files:
-
- 53 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/src/user32/Makefile.kmk
r21803 r21808 12 12 13 13 user32_SOURCES = \ 14 dc.cpp \ 15 dcrgn.cpp \ 16 dcscroll.cpp \ 17 user32.cpp \ 18 dde.cpp \ 19 wsprintf.cpp \ 20 winkeyboard.cpp \ 21 oslibkbd.cpp \ 22 winmouse.cpp \ 23 winevent.cpp \ 24 defwndproc.cpp \ 25 syscolor.cpp \ 26 uitools.cpp \ 27 unknown.cpp \ 28 spy.cpp \ 29 wndmsg.cpp \ 30 display.cpp \ 31 pmwindow.cpp \ 32 oslibmsgtranslate.cpp \ 33 msgbox.c \ 34 window.cpp \ 35 gen_object.cpp \ 36 win32wndchild.cpp \ 37 win32wbase.cpp \ 38 win32wbasenonclient.cpp \ 39 win32wbasepos.cpp \ 40 win32wbaseprop.cpp \ 41 win32wndhandle.cpp \ 42 win32wmisc.cpp \ 43 win32wdesktop.cpp \ 44 win32wfake.cpp \ 45 windowword.cpp \ 46 windowmsg.cpp \ 47 callwrap.asm \ 48 message.cpp \ 49 winproc.cpp \ 50 oslibmsg.cpp \ 51 hook.cpp \ 52 win32wmdiclient.cpp \ 53 mdi.c \ 54 win32dlg.cpp \ 55 windlgmsg.cpp \ 56 windlg.cpp \ 57 win32class.cpp \ 58 windowclass.cpp \ 59 oslibwin.cpp \ 60 controls.cpp \ 61 button.cpp \ 62 static.cpp \ 63 scroll.cpp \ 64 listbox.c \ 65 menu.c \ 66 combo.c \ 67 edit.c \ 68 winswitch.cpp \ 69 icontitle.cpp \ 70 clipboard.cpp \ 71 oslibutil.cpp \ 72 dib.cpp \ 73 oslibdos.cpp \ 74 oslibgdi.cpp \ 75 oslibres.cpp \ 76 loadres.cpp \ 77 winaccel.cpp \ 78 icon.cpp \ 79 winicon.cpp \ 80 timer.cpp \ 81 dbglocal.cpp \ 82 caret.cpp \ 83 text.c \ 84 exticon.c \ 85 wintrack.cpp \ 86 oldnls32.cpp \ 87 oslibprf.cpp \ 88 dragdrop.cpp \ 89 oslibdnd.cpp \ 90 oslibclipbrd.cpp \ 91 cp_cvt.cpp \ 92 stats.cpp \ 93 auxthread.cpp \ 14 94 initterm.cpp \ 15 95 user32rsrc.orc 96 97 user32_SOURCES.release += \ 98 user32.def 99 user32_SOURCES.debug += \ 100 dbgwrap.cpp \ 101 user32dbg.def 16 102 17 103 user32_LIBS = \ -
branches/gcc-kmk/src/user32/caret.cpp
r10379 r21808 23 23 #include <wprocess.h> 24 24 #include <misc.h> 25 #include <win32wbase.h>25 #include "win32wbase.h" 26 26 #include "oslibwin.h" 27 27 #include <dcdata.h> -
branches/gcc-kmk/src/user32/combo.c
r21356 r21808 1428 1428 switch( HIWORD(wParam) ) 1429 1429 { 1430 case LBN_ERRSPACE:1430 case (WORD)LBN_ERRSPACE: 1431 1431 CB_NOTIFY( lphc, CBN_ERRSPACE ); 1432 1432 break; -
branches/gcc-kmk/src/user32/dc.cpp
r21459 r21808 28 28 #include <winconst.h> 29 29 #include <misc.h> 30 #include <win32wbase.h>31 30 #include <math.h> 32 31 #include <limits.h> 32 #include "win32wbase.h" 33 33 #include "oslibwin.h" 34 34 #include "oslibmsg.h" … … 1244 1244 1245 1245 BytesNeeded = GetRegionData (hrgn, 0, NULL); 1246 RgnData = (PRGNDATA) _alloca (BytesNeeded);1246 RgnData = (PRGNDATA)alloca (BytesNeeded); 1247 1247 if (RgnData == NULL) 1248 1248 goto error; -
branches/gcc-kmk/src/user32/dcrgn.cpp
r10316 r21808 27 27 #include <winconst.h> 28 28 #include <misc.h> 29 #include <win32wbase.h>30 29 #include <math.h> 31 30 #include <limits.h> 31 #include "win32wbase.h" 32 32 #include "oslibwin.h" 33 33 #include "oslibmsg.h" -
branches/gcc-kmk/src/user32/dib.h
r4601 r21808 19 19 #define __DIB_H__ 20 20 21 //must use WIN32API as it's exported 21 #ifdef __cplusplus 22 extern "C" { 23 #endif 24 25 // must use WIN32API as it's exported 22 26 int WIN32API DIB_GetDIBWidthBytes( int width, int depth ); 27 int WIN32API BITMAP_GetWidthBytes( INT width, INT depth ); 28 29 #ifdef __cplusplus 30 } // extern "C" 31 #endif 23 32 24 33 int DIB_GetDIBImageBytes( int width, int height, int depth ); … … 27 36 int *height, WORD *bpp, WORD *compr ); 28 37 void DIB_FixColorsToLoadflags(BITMAPINFO * bmi, UINT loadflags, BYTE pix); 29 int WIN32API BITMAP_GetWidthBytes( INT width, INT depth );30 38 31 39 #endif -
branches/gcc-kmk/src/user32/display.cpp
r9974 r21808 27 27 #define NRMODES 5 28 28 #define NRDEPTHS 4 29 st ruct {30 29 static struct { 30 int w,h; 31 31 } modes[NRMODES]={{512,384},{640,400},{640,480},{800,600},{1024,768}}; 32 32 int depths[4] = {8,16,24,32}; -
branches/gcc-kmk/src/user32/gen_object.cpp
r10587 r21808 15 15 #include <misc.h> 16 16 #include <win32type.h> 17 #include <gen_object.h>17 #include "gen_object.h" 18 18 19 19 #define DBG_LOCALLOG DBG_gen_object -
branches/gcc-kmk/src/user32/hook.cpp
r21692 r21808 653 653 HINSTANCE hInst, DWORD dwThreadId ) 654 654 { 655 return HOOK_SetHook( id, proc, HOOK_WIN32A, hInst, dwThreadId );655 return HOOK_SetHook( id, (LPVOID)proc, HOOK_WIN32A, hInst, dwThreadId ); 656 656 } 657 657 … … 662 662 DWORD dwThreadId ) 663 663 { 664 return HOOK_SetHook( id, proc, HOOK_WIN32W, hInst, dwThreadId );664 return HOOK_SetHook( id, (LPVOID)proc, HOOK_WIN32W, hInst, dwThreadId ); 665 665 } 666 666 -
branches/gcc-kmk/src/user32/icon.cpp
r9851 r21808 21 21 #include <string.h> 22 22 #include <stdlib.h> 23 #include <string.h> 24 #ifndef __EMX__ 23 25 #include <iostream.h> 24 # include <string.h>26 #endif 25 27 26 28 #include <win32api.h> -
branches/gcc-kmk/src/user32/initterm.cpp
r21802 r21808 16 16 #define INCL_WINSHELLDATA 17 17 #define INCL_WINERRORS 18 #define INCL_GPILCIDS 18 19 #include <os2wrap.h> //Odin32 OS/2 api wrappers 19 20 #include <stdlib.h> -
branches/gcc-kmk/src/user32/loadres.cpp
r21720 r21808 19 19 */ 20 20 #include <os2win.h> 21 #include <user32.h>21 #include "user32.h" 22 22 #include <heapstring.h> 23 #include <oslibres.h>23 #include "oslibres.h" 24 24 #include <win/virtual.h> 25 25 #include "dib.h" -
branches/gcc-kmk/src/user32/mdi.c
r21356 r21808 99 99 #ifdef __WIN32OS2__ 100 100 #include "mdi.h" 101 #include <win32wmisc.h>101 #include "win32wmisc.h" 102 102 #else 103 103 #define MDI_MAXLISTLENGTH 0x40 -
branches/gcc-kmk/src/user32/mdi.h
r6762 r21808 34 34 #define MDIF_NEEDUPDATE 0x0001 35 35 36 LRESULT WINAPI MDIClientWndProcA( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam );37 LRESULT WINAPI MDIClientWndProcW( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam );38 39 36 typedef struct 40 37 { -
branches/gcc-kmk/src/user32/menu.c
r21356 r21808 757 757 if (id && IS_MAGIC_ITEM( id )) 758 758 { 759 switch( LOWORD(id))759 switch((HBITMAP)LOWORD(id)) 760 760 { 761 761 case HBMMENU_SYSTEM: … … 813 813 RECT r; 814 814 815 switch( LOWORD(lpitem->text))815 switch((HBITMAP)LOWORD(lpitem->text)) 816 816 { 817 817 case HBMMENU_SYSTEM: -
branches/gcc-kmk/src/user32/message.cpp
r21553 r21808 21 21 #include <os2win.h> 22 22 #include <misc.h> 23 #include <win32wbase.h>23 #include "win32wbase.h" 24 24 #include <win.h> 25 25 #include <heapstring.h> -
branches/gcc-kmk/src/user32/new/winmenu.cpp
r2400 r21808 25 25 #include <stdlib.h> 26 26 #include <string.h> 27 #include <win32wbase.h>27 #include "win32wbase.h" 28 28 #include "oslibmenu.h" 29 29 #include "oslibwin.h" -
branches/gcc-kmk/src/user32/oslibgdi.cpp
r5685 r21808 17 17 #include <misc.h> 18 18 #include <winconst.h> 19 #include <oslibgdi.h>20 #include <oslibwin.h>19 #include "oslibgdi.h" 20 #include "oslibwin.h" 21 21 #include "win32wbase.h" 22 22 -
branches/gcc-kmk/src/user32/oslibgdi.h
r5685 r21808 14 14 15 15 #ifdef OS2_INCLUDED 16 #include "win32type.h"16 #include <win32type.h> 17 17 #endif 18 #include <win32wbase.h>18 #include "win32wbase.h" 19 19 20 20 typedef struct -
branches/gcc-kmk/src/user32/oslibprf.cpp
r6327 r21808 19 19 #include "oslibprf.h" 20 20 21 LONG OSLibPrfQueryProfileInt(OSLIB_HINI hini, c har *pszApp,char *pszKey, LONG sDefault)21 LONG OSLibPrfQueryProfileInt(OSLIB_HINI hini, const char *pszApp, const char *pszKey, LONG sDefault) 22 22 { 23 23 return PrfQueryProfileInt(hini, pszApp, pszKey, sDefault); 24 24 } 25 25 26 LONG OSLibPrfQueryProfileString(OSLIB_HINI hini, c har *pszApp, char *pszKey,char *pszDefault, char *buffer, ULONG buflen)26 LONG OSLibPrfQueryProfileString(OSLIB_HINI hini, const char *pszApp, const char *pszKey, const char *pszDefault, char *buffer, ULONG buflen) 27 27 { 28 28 return PrfQueryProfileString(hini, pszApp, pszKey, pszDefault, buffer, buflen); -
branches/gcc-kmk/src/user32/oslibprf.h
r9854 r21808 23 23 extern "C" { 24 24 25 LONG OSLibPrfQueryProfileInt(OSLIB_HINI hini, c har *pszApp,char *pszKey, LONG sDefault);26 LONG OSLibPrfQueryProfileString(OSLIB_HINI hini, c har *pszApp, char *pszKey,char *pszDefault, char *buffer, ULONG buflen);25 LONG OSLibPrfQueryProfileInt(OSLIB_HINI hini, const char *pszApp, const char *pszKey, LONG sDefault); 26 LONG OSLibPrfQueryProfileString(OSLIB_HINI hini, const char *pszApp, const char *pszKey, const char *pszDefault, char *buffer, ULONG buflen); 27 27 28 28 } -
branches/gcc-kmk/src/user32/oslibres.cpp
r10540 r21808 276 276 HPS hpsDest = 0; 277 277 SIZEL sizl = { 0, 0 }; /* use same page size as device */ 278 DEVOPENSTRUC dop = {0L, "DISPLAY", NULL, 0L, 0L, 0L, 0L, 0L, 0L};278 DEVOPENSTRUC dop = {0L, (PSZ)"DISPLAY", NULL, 0L, 0L, 0L, 0L, 0L, 0L}; 279 279 LONG lHits; 280 280 char *bmpbuffer = 0; -
branches/gcc-kmk/src/user32/oslibwin.cpp
r21544 r21808 969 969 PVOID OSLibWinSubclassWindow(HWND hwnd,PVOID newWndProc) 970 970 { 971 return WinSubclassWindow(hwnd,(PFNWP)newWndProc);971 return (PVOID)WinSubclassWindow(hwnd,(PFNWP)newWndProc); 972 972 } 973 973 //****************************************************************************** -
branches/gcc-kmk/src/user32/oslibwin.h
r10396 r21808 15 15 16 16 #ifdef __cplusplus 17 #include <oslibgdi.h>17 #include "oslibgdi.h" 18 18 19 19 #ifndef WIN_INCLUDED … … 332 332 } 333 333 334 #ifdef __cplusplus 335 extern "C" { 336 #endif 337 334 338 ULONG OSLibGetScreenHeight(); 335 339 ULONG OSLibGetScreenWidth(); 340 341 #ifdef __cplusplus 342 } // extern "C" 343 #endif 336 344 337 345 BOOL OSLibWinLockWindowUpdate(HWND hwnd); -
branches/gcc-kmk/src/user32/pmwindow.cpp
r21720 r21808 32 32 #include <wprocess.h> 33 33 #include <dbglog.h> 34 #include <win32wbase.h>35 #include <win32wfake.h>36 #include <win32dlg.h>34 #include "win32wbase.h" 35 #include "win32wfake.h" 36 #include "win32dlg.h" 37 37 #include "win32wdesktop.h" 38 38 #include "pmwindow.h" … … 257 257 HDC hdc; /* Device-context handle */ 258 258 /* context data structure */ 259 DEVOPENSTRUC dop = {NULL, "DISPLAY", NULL, NULL, NULL, NULL,259 DEVOPENSTRUC dop = {NULL, (PSZ)"DISPLAY", NULL, NULL, NULL, NULL, 260 260 NULL, NULL, NULL}; 261 261 … … 328 328 HMODULE hModDisplay; 329 329 HDC hdc; /* Device-context handle */ 330 DEVOPENSTRUC dop = {NULL, "DISPLAY", NULL, NULL, NULL, NULL,330 DEVOPENSTRUC dop = {NULL, (PSZ)"DISPLAY", NULL, NULL, NULL, NULL, 331 331 NULL, NULL, NULL}; 332 332 … … 2526 2526 PVOID PMWinSubclassFakeWindow(HWND hwndOS2) 2527 2527 { 2528 return WinSubclassWindow(hwndOS2, Win32FakeWindowProc);2528 return (PVOID)WinSubclassWindow(hwndOS2, Win32FakeWindowProc); 2529 2529 } 2530 2530 //****************************************************************************** -
branches/gcc-kmk/src/user32/syscolor.cpp
r9787 r21808 75 75 }; 76 76 77 static c har* ColorNames[NUM_SYS_COLORS] =77 static const char* ColorNames[NUM_SYS_COLORS] = 78 78 { 79 79 "SCROLLBAR", -
branches/gcc-kmk/src/user32/timer.cpp
r10544 r21808 20 20 #include <winconst.h> 21 21 #include <misc.h> 22 #include <win32wbase.h>22 #include "win32wbase.h" 23 23 #include "oslibutil.h" 24 24 #include "timer.h" -
branches/gcc-kmk/src/user32/unknown.cpp
r3662 r21808 14 14 #define DBG_LOCALLOG DBG_unknown 15 15 #include "dbglocal.h" 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 16 20 17 21 /***************************************************************************** … … 179 183 } 180 184 181 182 185 #ifdef __cplusplus 186 } // extern "C" 187 #endif -
branches/gcc-kmk/src/user32/user32.cpp
r10523 r21808 46 46 #include <stdlib.h> 47 47 #include <string.h> 48 //#include <oslibwin.h> 49 #include <win32wnd.h> 48 //#include "oslibwin.h" 50 49 #include <winuser.h> 50 #include "win32wnd.h" 51 51 #include "initterm.h" 52 52 … … 90 90 ODINDEBUGCHANNEL(USER32-USER32) 91 91 92 #ifdef __cplusplus 93 extern "C" { 94 #endif 92 95 93 96 /* Coordinate Transformation */ … … 2240 2243 } 2241 2244 2242 2245 #ifdef __cplusplus 2246 } // extern "C" 2247 #endif -
branches/gcc-kmk/src/user32/win32class.cpp
r21720 r21808 32 32 #include <assert.h> 33 33 #include <misc.h> 34 #include <win32class.h>35 #include <win32wnd.h>34 #include "win32class.h" 35 #include "win32wnd.h" 36 36 #include <win/winproc.h> 37 37 #include <unicode.h> … … 40 40 #include "dbglocal.h" 41 41 42 static fDestroyAll = FALSE;42 static BOOL fDestroyAll = FALSE; 43 43 44 44 //****************************************************************************** … … 169 169 170 170 if(pfnWindowProcA) 171 WINPROC_FreeProc( pfnWindowProcA, WIN_PROC_CLASS);171 WINPROC_FreeProc((HWINDOWPROC)pfnWindowProcA, WIN_PROC_CLASS); 172 172 if(pfnWindowProcW) 173 WINPROC_FreeProc( pfnWindowProcW, WIN_PROC_CLASS);173 WINPROC_FreeProc((HWINDOWPROC)pfnWindowProcW, WIN_PROC_CLASS); 174 174 175 175 if(userClassBytes) free(userClassBytes); … … 457 457 pfnWindowProc = pfnWindowProcW; 458 458 } 459 return (ULONG) WINPROC_GetProc( pfnWindowProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);459 return (ULONG) WINPROC_GetProc((HWINDOWPROC)pfnWindowProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A); 460 460 } 461 461 case GCW_ATOM: //TODO: does this really happen in windows? … … 556 556 proc = &pfnWindowProcW; 557 557 } 558 rc = (LONG)WINPROC_GetProc( *proc, type );558 rc = (LONG)WINPROC_GetProc((HWINDOWPROC)*proc, type ); 559 559 WINPROC_SetProc((HWINDOWPROC *)proc, (WNDPROC)lNewVal, type, WIN_PROC_CLASS); 560 560 … … 564 564 if (proc == &pfnWindowProcA) 565 565 { 566 WINPROC_FreeProc( pfnWindowProcW, WIN_PROC_CLASS );566 WINPROC_FreeProc( (HWINDOWPROC)pfnWindowProcW, WIN_PROC_CLASS ); 567 567 pfnWindowProcW = 0; 568 568 } 569 569 else 570 570 { 571 WINPROC_FreeProc( pfnWindowProcA, WIN_PROC_CLASS );571 WINPROC_FreeProc( (HWINDOWPROC)pfnWindowProcA, WIN_PROC_CLASS ); 572 572 pfnWindowProcA = 0; 573 573 } -
branches/gcc-kmk/src/user32/win32dlg.cpp
r21720 r21808 17 17 #include <string.h> 18 18 #include <misc.h> 19 #include <win32dlg.h>19 #include "win32dlg.h" 20 20 #include <win/winproc.h> 21 21 #include "oslibmsg.h" … … 229 229 if (hMenu) DestroyMenu( hMenu ); 230 230 231 WINPROC_FreeProc( Win32DlgProc, WIN_PROC_WINDOW);231 WINPROC_FreeProc((HWINDOWPROC)Win32DlgProc, WIN_PROC_WINDOW); 232 232 } 233 233 //****************************************************************************** … … 1185 1185 type = (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A; 1186 1186 } 1187 oldval = (LONG)WINPROC_GetProc( Win32DlgProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);1187 oldval = (LONG)WINPROC_GetProc((HWINDOWPROC)Win32DlgProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A); 1188 1188 WINPROC_SetProc((HWINDOWPROC *)&Win32DlgProc, (WNDPROC)value, type, WIN_PROC_WINDOW); 1189 1189 return oldval; … … 1209 1209 { 1210 1210 case DWL_DLGPROC: 1211 return (ULONG)WINPROC_GetProc( Win32DlgProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);1211 return (ULONG)WINPROC_GetProc((HWINDOWPROC)Win32DlgProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A); 1212 1212 case DWL_MSGRESULT: 1213 1213 return msgResult; -
branches/gcc-kmk/src/user32/win32dlg.h
r9366 r21808 13 13 #define __WIN32DLG_H__ 14 14 15 #include <win32wbase.h>15 #include "win32wbase.h" 16 16 17 17 #ifdef __cplusplus -
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; -
branches/gcc-kmk/src/user32/win32wbasenonclient.cpp
r21642 r21808 23 23 #include <misc.h> 24 24 #include <heapstring.h> 25 #include <win32wbase.h>25 #include "win32wbase.h" 26 26 #include "wndmsg.h" 27 27 #include "oslibwin.h" … … 37 37 #include "controls.h" 38 38 #include "pmwindow.h" 39 #include <menu.h>39 #include "menu.h" 40 40 41 41 #define DBG_LOCALLOG DBG_win32wbasenonclient -
branches/gcc-kmk/src/user32/win32wbasepos.cpp
r21720 r21808 24 24 #include <assert.h> 25 25 #include <misc.h> 26 #include <win32wbase.h>26 #include "win32wbase.h" 27 27 #include <spy.h> 28 28 #include "wndmsg.h" -
branches/gcc-kmk/src/user32/win32wbaseprop.cpp
r10031 r21808 12 12 */ 13 13 #include <string.h> 14 #include <user32.h>14 #include "user32.h" 15 15 #include <heapstring.h> 16 16 #include <misc.h> -
branches/gcc-kmk/src/user32/win32wdesktop.cpp
r10379 r21808 12 12 #include <os2win.h> 13 13 #include <misc.h> 14 #include <win32wbase.h>15 #include <win32wdesktop.h>14 #include "win32wbase.h" 15 #include "win32wdesktop.h" 16 16 #include "oslibwin.h" 17 17 #include "win32wndhandle.h" -
branches/gcc-kmk/src/user32/win32wfake.cpp
r21720 r21808 15 15 #include <dbglog.h> 16 16 #include <win/winproc.h> 17 #include <win32wbase.h>18 #include <win32wfake.h>17 #include "win32wbase.h" 18 #include "win32wfake.h" 19 19 #include "oslibwin.h" 20 20 #include "win32wndhandle.h" … … 113 113 } 114 114 115 WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, windowClass->getWindowProc((isUnicode) ? WNDPROC_UNICODE : WNDPROC_ASCII), WINPROC_GetProcType( windowClass->getWindowProc((isUnicode) ? WNDPROC_UNICODE : WNDPROC_ASCII)), WIN_PROC_WINDOW);115 WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, windowClass->getWindowProc((isUnicode) ? WNDPROC_UNICODE : WNDPROC_ASCII), WINPROC_GetProcType((HWINDOWPROC)windowClass->getWindowProc((isUnicode) ? WNDPROC_UNICODE : WNDPROC_ASCII)), WIN_PROC_WINDOW); 116 116 hInstance = NULL; 117 117 dwStyle = WS_VISIBLE; -
branches/gcc-kmk/src/user32/win32wfake.h
r10031 r21808 13 13 #define __WIN32WFAKE_H__ 14 14 15 #include <win32wbase.h>15 #include "win32wbase.h" 16 16 17 17 class Win32FakeWindow : public Win32BaseWindow -
branches/gcc-kmk/src/user32/win32wmdiclient.cpp
r9523 r21808 23 23 #include <misc.h> 24 24 #include <heapstring.h> 25 #include <win32wnd.h>26 #include <win32wmdiclient.h>25 #include "win32wnd.h" 26 #include "win32wmdiclient.h" 27 27 #include <spy.h> 28 28 #include "wndmsg.h" 29 #include <oslibwin.h>30 #include <oslibutil.h>31 #include <oslibgdi.h>32 #include <oslibres.h>29 #include "oslibwin.h" 30 #include "oslibutil.h" 31 #include "oslibgdi.h" 32 #include "oslibres.h" 33 33 #include "oslibdos.h" 34 34 #include "syscolor.h" -
branches/gcc-kmk/src/user32/win32wmdiclient.h
r6762 r21808 11 11 #define __WIN32WMDICLIENT_H__ 12 12 13 #include <win32wbase.h>13 #include "win32wbase.h" 14 14 #include "mdi.h" 15 15 -
branches/gcc-kmk/src/user32/win32wmisc.cpp
r21356 r21808 21 21 #include <assert.h> 22 22 #include <dbglog.h> 23 #include <win32wnd.h>23 #include "win32wnd.h" 24 24 #include <heapstring.h> 25 25 #include <spy.h> 26 26 #include "wndmsg.h" 27 #include <oslibwin.h>28 #include <oslibutil.h>29 #include <oslibgdi.h>30 #include <oslibres.h>27 #include "oslibwin.h" 28 #include "oslibutil.h" 29 #include "oslibgdi.h" 30 #include "oslibres.h" 31 31 #include "oslibdos.h" 32 32 #include "win32wndhandle.h" -
branches/gcc-kmk/src/user32/win32wnd.cpp
r5935 r21808 21 21 #include <assert.h> 22 22 #include <misc.h> 23 #include <win32wnd.h>23 #include "win32wnd.h" 24 24 #include <heapstring.h> 25 25 #include <spy.h> 26 26 #include "wndmsg.h" 27 #include <oslibwin.h>28 #include <oslibutil.h>29 #include <oslibgdi.h>30 #include <oslibres.h>27 #include "oslibwin.h" 28 #include "oslibutil.h" 29 #include "oslibgdi.h" 30 #include "oslibres.h" 31 31 #include "oslibdos.h" 32 32 #include "syscolor.h" -
branches/gcc-kmk/src/user32/win32wnd.h
r6762 r21808 11 11 #define __WIN32WND_H__ 12 12 13 #include <win32wbase.h>13 #include "win32wbase.h" 14 14 15 15 //****************************************************************************** -
branches/gcc-kmk/src/user32/win32wndchild.cpp
r10587 r21808 11 11 */ 12 12 #include <os2win.h> 13 #include <win32wndchild.h>13 #include "win32wndchild.h" 14 14 #include <misc.h> 15 15 -
branches/gcc-kmk/src/user32/win32wndhandle.cpp
r10544 r21808 35 35 #pragma data_seg() 36 36 37 static c har *pszWndHandleSemName = WINHANDLE_CRITSECTION_NAME;37 static const char *pszWndHandleSemName = WINHANDLE_CRITSECTION_NAME; 38 38 39 39 //****************************************************************************** … … 71 71 lastIndex = 0; 72 72 } 73 for(int i=lastIndex;i<MAX_WINDOW_HANDLES;i++) { 73 int i; 74 for(i=lastIndex;i<MAX_WINDOW_HANDLES;i++) { 74 75 if(WindowHandleTable[i] == 0) { 75 76 lastIndex = i; -
branches/gcc-kmk/src/user32/windlg.cpp
r21720 r21808 696 696 697 697 /* If the path exists and is a directory, chdir to it */ 698 if (!spec || !spec[0] || SetCurrentDirectoryA( spec )) spec = "*.*";698 if (!spec || !spec[0] || SetCurrentDirectoryA( spec )) spec = (LPSTR)"*.*"; 699 699 else 700 700 { -
branches/gcc-kmk/src/user32/window.cpp
r21726 r21808 29 29 #include <string.h> 30 30 #include <stdio.h> 31 #include <win32wbase.h>32 #include <win32wmdiclient.h>33 #include <win32wdesktop.h>31 #include "win32wbase.h" 32 #include "win32wmdiclient.h" 33 #include "win32wdesktop.h" 34 34 #include "win32dlg.h" 35 #include <oslibwin.h>36 #include <oslibgdi.h>35 #include "oslibwin.h" 36 #include "oslibgdi.h" 37 37 #include "user32.h" 38 38 #include "winicon.h" … … 52 52 ODINDEBUGCHANNEL(USER32-WINDOW) 53 53 54 #ifdef __cplusplus 55 extern "C" { 56 #endif 54 57 55 58 //****************************************************************************** … … 2262 2265 return (FALSE); 2263 2266 } 2267 2268 #ifdef __cplusplus 2269 } // extern "C" 2270 #endif -
branches/gcc-kmk/src/user32/windowclass.cpp
r21303 r21808 18 18 #include <misc.h> 19 19 #include <unicode.h> 20 #include <win32class.h>21 #include <win32wbase.h>22 #include <controls.h>20 #include "win32class.h" 21 #include "win32wbase.h" 22 #include "controls.h" 23 23 24 24 #define DBG_LOCALLOG DBG_windowclass -
branches/gcc-kmk/src/user32/windowmsg.cpp
r21555 r21808 23 23 #include <os2win.h> 24 24 #include <misc.h> 25 #include <win32wbase.h>25 #include "win32wbase.h" 26 26 #include <win.h> 27 27 #include <heapstring.h> -
branches/gcc-kmk/src/user32/windowword.cpp
r10119 r21808 12 12 #include <os2win.h> 13 13 #include <dbglog.h> 14 #include <ctrlconf.h>14 #include "ctrlconf.h" 15 15 16 #include <win32wbase.h>16 #include "win32wbase.h" 17 17 18 18 #define DBG_LOCALLOG DBG_windowword -
branches/gcc-kmk/src/user32/winevent.cpp
r7866 r21808 33 33 #include <stdlib.h> 34 34 #include <string.h> 35 //#include <oslibwin.h> 36 #include <win32wnd.h> 35 //#include "oslibwin.h" 37 36 #include <winuser.h> 37 #include "win32wnd.h" 38 38 #include "initterm.h" 39 39 -
branches/gcc-kmk/src/user32/winkeyboard.cpp
r21344 r21808 321 321 /* index is the VKey value */ 322 322 BYTE bPMScanCode; 323 LP STR lpstrName;323 LPCSTR lpstrName; 324 324 } WINVKEYTOPMSCAN, *PWINVKEYTOPMSCAN; 325 325 … … 587 587 588 588 // @@PF reflect Num Enter key 589 LP STR lpstrNumEnter = "Num Enter";589 LPCSTR lpstrNumEnter = "Num Enter"; 590 590 591 591 // @@@PH … … 1335 1335 } 1336 1336 1337 extern "C" 1337 1338 int WINAPI ToUnicodeEx(UINT virtKey, UINT scanCode, const BYTE *lpKeyState, 1338 1339 LPWSTR lpwStr, int size, UINT flags, HKL hkl) … … 1408 1409 memset(lpString, 0, nSize); 1409 1410 1410 LP STR lpstrKey;1411 LPCSTR lpstrKey; 1411 1412 lpstrKey = abWinVKeyToPMScan[ucWinVKey].lpstrName; 1412 1413
Note:
See TracChangeset
for help on using the changeset viewer.