Changeset 21720 for branches/gcc-kmk/src/user32
- Timestamp:
- Oct 19, 2011, 11:26:02 AM (14 years ago)
- Location:
- branches/gcc-kmk/src/user32
- Files:
-
- 19 edited
-
controls/controls.h (modified) (1 diff)
-
loadres.cpp (modified) (4 diffs)
-
msgbox.c (modified) (1 diff)
-
oslibmsg.cpp (modified) (1 diff)
-
oslibres.h (modified) (1 diff)
-
pmwindow.cpp (modified) (1 diff)
-
win32class.cpp (modified) (1 diff)
-
win32dlg.cpp (modified) (6 diffs)
-
win32wbase.cpp (modified) (1 diff)
-
win32wbasepos.cpp (modified) (1 diff)
-
win32wfake.cpp (modified) (1 diff)
-
winaccel.cpp (modified) (3 diffs)
-
windlg.cpp (modified) (2 diffs)
-
windlgmsg.cpp (modified) (2 diffs)
-
window.cpp (modified) (19 diffs)
-
winicon.cpp (modified) (6 diffs)
-
winmouse.cpp (modified) (1 diff)
-
winproc.cpp (modified) (2 diffs)
-
wndmsg.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/src/user32/controls/controls.h
r8543 r21720 10 10 #define __CONTROLS_H 11 11 12 #include <win \win.h>12 #include <win/win.h> 13 13 #include <heapstring.h> 14 14 -
branches/gcc-kmk/src/user32/loadres.cpp
r21303 r21720 22 22 #include <heapstring.h> 23 23 #include <oslibres.h> 24 #include <win \virtual.h>24 #include <win/virtual.h> 25 25 #include "dib.h" 26 26 #include "initterm.h" … … 70 70 hRes = FindResourceW(hinst, (LPWSTR)(((wID>>4)&0xffff)+1), RT_STRINGW); 71 71 if(hRes == NULL) { 72 dprintf(("LoadStringW NOT FOUND from %X, id %d buffersize %d\n", hinst, wID, cchBuffer)); 72 dprintf(("LoadStringW NOT FOUND from %X, id %d buffersize %d\n", hinst, wID, cchBuffer)); 73 73 *lpBuffer = 0; //NT4, SP6 clears first character 74 74 return 0; … … 342 342 headersize = sizeof(BITMAPINFO)+colortablesize+3*sizeof(DWORD); //+ extra space for > 8bpp images 343 343 344 pInfo = (BITMAPINFO *)malloc(headersize+bmpsize); 344 pInfo = (BITMAPINFO *)malloc(headersize+bmpsize); 345 345 if(pInfo == NULL) { 346 346 DebugInt3(); … … 360 360 GetDIBits(hdc, hBitmap, 0, bm.bmHeight, pBitmapData, pInfo, DIB_RGB_COLORS); 361 361 362 res = CreateDIBitmap(hdc, &pInfo->bmiHeader, CBM_INIT, pBitmapData, 362 res = CreateDIBitmap(hdc, &pInfo->bmiHeader, CBM_INIT, pBitmapData, 363 363 pInfo, DIB_RGB_COLORS ); 364 364 -
branches/gcc-kmk/src/user32/msgbox.c
r10190 r21720 8 8 * 9 9 */ 10 #include <win \winbase.h>11 #include <win \winuser.h>10 #include <win/winbase.h> 11 #include <win/winuser.h> 12 12 #include <string.h> 13 13 #include <dlgs.h> -
branches/gcc-kmk/src/user32/oslibmsg.cpp
r21555 r21720 49 49 #include "pmwindow.h" 50 50 #include "oslibwin.h" 51 #include <win \hook.h>51 #include <win/hook.h> 52 52 #include <winscan.h> 53 53 #include <winkeyboard.h> -
branches/gcc-kmk/src/user32/oslibres.h
r6168 r21720 17 17 #endif 18 18 19 #include <win \cursoricon.h>19 #include <win/cursoricon.h> 20 20 21 21 #ifdef OS2_INCLUDED -
branches/gcc-kmk/src/user32/pmwindow.cpp
r21717 r21720 57 57 #include <oslibdnd.h> 58 58 #include <custombuild.h> 59 #include <win \dbt.h>59 #include <win/dbt.h> 60 60 #include "dragdrop.h" 61 61 #include "menu.h" -
branches/gcc-kmk/src/user32/win32class.cpp
r10587 r21720 34 34 #include <win32class.h> 35 35 #include <win32wnd.h> 36 #include <win \winproc.h>36 #include <win/winproc.h> 37 37 #include <unicode.h> 38 38 -
branches/gcc-kmk/src/user32/win32dlg.cpp
r10545 r21720 18 18 #include <misc.h> 19 19 #include <win32dlg.h> 20 #include <win \winproc.h>20 #include <win/winproc.h> 21 21 #include "oslibmsg.h" 22 22 #include "oslibwin.h" … … 202 202 203 203 //Mask away WS_CAPTION style for dialogs with DS_CONTROL style 204 //(necessary for OFN_ENABLETEMPLATE file open dialogs) 204 //(necessary for OFN_ENABLETEMPLATE file open dialogs) 205 205 //(verified this behaviour in NT4, SP6) 206 206 if (dlgInfo.style & DS_CONTROL) cs.style &= ~(WS_CAPTION); … … 265 265 266 266 HWND hwndPreInitFocus = GetFocus(); 267 if(SendMessageA(getWindowHandle(), WM_INITDIALOG, (WPARAM)hwndFocus, param)) 267 if(SendMessageA(getWindowHandle(), WM_INITDIALOG, (WPARAM)hwndFocus, param)) 268 268 { 269 269 //SvL: Experiments in NT4 show that dialogs that are children don't 270 270 // receive focus. Not sure if this is always true. (couldn't 271 271 // find any remarks about this in the SDK docs) 272 if(!(getStyle() & WS_CHILD)) 272 if(!(getStyle() & WS_CHILD)) 273 273 { 274 274 /* check where the focus is again, … … 285 285 // receive focus. Not sure if this is always true. (couldn't 286 286 // find any remarks about this in the SDK docs) 287 if(!(getStyle() & WS_CHILD)) 287 if(!(getStyle() & WS_CHILD)) 288 288 { 289 289 /* If the dlgproc has returned FALSE (indicating handling of keyboard focus) … … 379 379 HOOK_CallHooksA( WH_MSGFILTER, MSGF_DIALOGBOX, 0, 380 380 (LPARAM) pmsg )); 381 381 382 382 HeapFree( GetProcessHeap(), 0, pmsg ); 383 383 if (ret) … … 1163 1163 1164 1164 /* unblock dialog loop */ 1165 PostMessageA(hwnd, WM_NULL, 0, 0); 1165 PostMessageA(hwnd, WM_NULL, 0, 0); 1166 1166 return TRUE; 1167 1167 } -
branches/gcc-kmk/src/user32/win32wbase.cpp
r21641 r21720 63 63 #include "controls.h" 64 64 #include <wprocess.h> 65 #include <win \hook.h>65 #include <win/hook.h> 66 66 #include <menu.h> 67 67 #define INCL_TIMERWIN32 -
branches/gcc-kmk/src/user32/win32wbasepos.cpp
r10091 r21720 36 36 #include "dc.h" 37 37 #include "win32wdesktop.h" 38 #include <win \hook.h>38 #include <win/hook.h> 39 39 40 40 #define DBG_LOCALLOG DBG_win32wbasepos -
branches/gcc-kmk/src/user32/win32wfake.cpp
r10038 r21720 14 14 #include <string.h> 15 15 #include <dbglog.h> 16 #include <win \winproc.h>16 #include <win/winproc.h> 17 17 #include <win32wbase.h> 18 18 #include <win32wfake.h> -
branches/gcc-kmk/src/user32/winaccel.cpp
r10190 r21720 18 18 #include <misc.h> 19 19 #include <heapstring.h> 20 #include <win \winnls.h>20 #include <win/winnls.h> 21 21 22 22 #define DBG_LOCALLOG DBG_winaccel … … 29 29 * 01: BYTE pad (to WORD boundary) 30 30 * 02: WORD event 31 * 04: WORD IDval 31 * 04: WORD IDval 32 32 * 06: WORD pad (to DWORD boundary) 33 33 */ … … 54 54 hRetval = GlobalAlloc(0,sizeof(ACCEL)*nrofaccells); 55 55 accel = (LPACCEL)GlobalLock(hRetval); 56 56 57 57 for (i=0;i<nrofaccells;i++) { 58 58 accel[i].fVirt = accel_table[i].fVirt; -
branches/gcc-kmk/src/user32/windlg.cpp
r21356 r21720 24 24 #include "win32dlg.h" 25 25 #include <heapstring.h> 26 #include <win \drive.h>26 #include <win/drive.h> 27 27 #include <custombuild.h> 28 28 … … 330 330 } 331 331 } 332 } 332 } 333 333 } 334 334 #endif -
branches/gcc-kmk/src/user32/windlgmsg.cpp
r8968 r21720 22 22 #include "win32dlg.h" 23 23 #include <winnls.h> 24 #include <wine \unicode.h>24 #include <wine/unicode.h> 25 25 26 26 #define DBG_LOCALLOG DBG_windlgmsg … … 276 276 if (HIWORD(dw) == DC_HASDEFID) 277 277 { 278 if (IsWindowEnabled(GetDlgItem(hwndDlg, LOWORD(dw)))) 278 if (IsWindowEnabled(GetDlgItem(hwndDlg, LOWORD(dw)))) 279 279 { 280 280 SendMessageA( hwndDlg, WM_COMMAND, -
branches/gcc-kmk/src/user32/window.cpp
r21347 r21720 39 39 #include "pmwindow.h" 40 40 #include "oslibmsg.h" 41 #include <win \winpos.h>42 #include <win \win.h>41 #include <win/winpos.h> 42 #include <win/win.h> 43 43 #include <heapstring.h> 44 44 #include <winuser32.h> … … 155 155 } 156 156 HWND hwnd = window->getWindowHandle(); 157 157 158 158 // set myself as last active popup / window 159 159 window->setLastActive( hwnd ); 160 160 161 161 RELEASE_WNDOBJ(window); 162 162 return hwnd; … … 262 262 } 263 263 HWND hwnd = window->getWindowHandle(); 264 264 265 265 // set myself as last active popup / window 266 266 window->setLastActive( hwnd ); 267 267 268 268 RELEASE_WNDOBJ(window); 269 269 return hwnd; … … 300 300 } 301 301 hwndActive = window->SetActiveWindow(); 302 302 303 303 // check last active popup window 304 304 if (hwndActive) … … 308 308 dprintf(("support for last active popup incorrectly implemented")); 309 309 } 310 310 311 311 RELEASE_WNDOBJ(window); 312 312 return hwndActive; … … 561 561 if ((nCmdShow == SW_RESTORE) && (window->getStyle() & WS_MINIMIZE) && fOS2Look ) 562 562 { 563 dprintf(("ShowWindow: Initiating OS/2 PM restore")); 563 dprintf(("ShowWindow: Initiating OS/2 PM restore")); 564 564 ret = OSLibWinRestoreWindow(window->getOS2FrameWindowHandle()); 565 565 } 566 else 566 else 567 567 ret = window->ShowWindow(nCmdShow); 568 568 RELEASE_WNDOBJ(window); … … 720 720 ret = TRUE; 721 721 722 if(dwStyle & WS_CHILD) 722 if(dwStyle & WS_CHILD) 723 723 { 724 724 //check visibility of parents … … 762 762 //else no child -> no parent (GetParent returns owner otherwise!) 763 763 } 764 else 765 if (type == GA_ROOT) 764 else 765 if (type == GA_ROOT) 766 766 { 767 767 hwndAncestor = window->GetTopParent(); 768 768 } 769 769 else 770 if (type == GA_ROOTOWNER) 771 { 772 if(hwnd != GetDesktopWindow()) 770 if (type == GA_ROOTOWNER) 771 { 772 if(hwnd != GetDesktopWindow()) 773 773 { 774 774 hwndAncestor = hwnd; … … 804 804 TEB *teb; 805 805 806 dprintf(("SetFocus %x", hwnd)); 806 dprintf(("SetFocus %x", hwnd)); 807 807 teb = GetThreadTEB(); 808 808 if(teb == NULL) { … … 929 929 lpThreadInfo->hwndActive = GetActiveWindow(); 930 930 if(lpThreadInfo->hwndActive) { 931 if(dwThreadId != GetWindowThreadProcessId(lpThreadInfo->hwndActive, NULL)) 931 if(dwThreadId != GetWindowThreadProcessId(lpThreadInfo->hwndActive, NULL)) 932 932 {//this thread doesn't own the active window (TODO: correct??) 933 933 lpThreadInfo->hwndActive = 0; … … 980 980 windowDesktop->addRef(); 981 981 window = windowDesktop; 982 } 982 } 983 983 else window = Win32BaseWindow::GetWindowFromHandle(hwnd); 984 984 985 985 if(!window) { 986 986 dprintf(("GetWindowRect, window %x not found", hwnd)); … … 1104 1104 * InternalGetWindowText (USER32.326) 1105 1105 */ 1106 int WIN32API InternalGetWindowText(HWND hwnd, 1106 int WIN32API InternalGetWindowText(HWND hwnd, 1107 1107 LPWSTR lpString, 1108 1108 INT nMaxCount ) … … 1274 1274 windowDesktop->addRef(); 1275 1275 wndfrom = windowDesktop; 1276 } 1276 } 1277 1277 else { 1278 1278 wndfrom = Win32BaseWindow::GetWindowFromHandle(hwndFrom); … … 1288 1288 windowDesktop->addRef(); 1289 1289 wndto = windowDesktop; 1290 } 1290 } 1291 1291 else { 1292 1292 wndto = Win32BaseWindow::GetWindowFromHandle(hwndTo); … … 1887 1887 { 1888 1888 // WND *wndPtr = WIN_FindWndPtr(hwndChild); 1889 1889 1890 1890 // WINPOS_ShowIconTitle( wndPtr, FALSE ); 1891 1891 1892 1892 SetWindowPos( hwndChild, 0, x + (xspacing - GetSystemMetrics(SM_CXICON)) / 2, 1893 1893 y - yspacing - GetSystemMetrics(SM_CYICON)/2, 0, 0, … … 2003 2003 2004 2004 owner = Win32BaseWindow::GetWindowFromHandle(hWnd); 2005 if(!owner) 2005 if(!owner) 2006 2006 { 2007 2007 dprintf(("GetLastActivePopup, window %x not found", hWnd)); … … 2013 2013 if (!IsWindow( hwndRetVal )) 2014 2014 hwndRetVal = owner->getWindowHandle(); 2015 2015 2016 2016 RELEASE_WNDOBJ(owner); 2017 2017 2018 2018 return hwndRetVal; 2019 2019 } … … 2036 2036 } 2037 2037 RELEASE_WNDOBJ(window); 2038 2038 2039 2039 return dwThreadId; 2040 2040 } … … 2220 2220 } 2221 2221 //****************************************************************************** 2222 //The GetWindowModuleFileName function retrieves the full path and file name of 2222 //The GetWindowModuleFileName function retrieves the full path and file name of 2223 2223 //the module associated with the specified window handle. 2224 2224 //****************************************************************************** -
branches/gcc-kmk/src/user32/winicon.cpp
r21356 r21720 47 47 #include <string.h> 48 48 #include <winicon.h> 49 #include <win \cursoricon.h>49 #include <win/cursoricon.h> 50 50 #include <objhandle.h> 51 51 #include "dib.h" 52 52 #include <heapstring.h> 53 #include <win \virtual.h>53 #include <win/virtual.h> 54 54 #include "initterm.h" 55 55 #include "oslibres.h" … … 200 200 201 201 /* Transfer the bitmap bits to the CURSORICONINFO structure */ 202 if(bmpAnd.bmBitsPixel > 1) 202 if(bmpAnd.bmBitsPixel > 1) 203 203 {//Our code expects b&w masks, so convert it first 204 204 //We could also use GetDIBits to do the conversion for us, but it returns … … 216 216 217 217 //blit to the destination HDC & convert to 1bpp 218 BitBlt(hdcDest, 0, 0, bmpAnd.bmWidth, bmpAnd.bmHeight, 218 BitBlt(hdcDest, 0, 0, bmpAnd.bmWidth, bmpAnd.bmHeight, 219 219 hdcSrc, 0, 0, SRCCOPY); 220 220 … … 442 442 if(hActiveCursorPM && hActiveCursorPM != OSLibWinQueryPointer()) { 443 443 dprintf(("Another app changed mouse cursor")); 444 hActiveCursorPM = hActiveCursor = 0; 444 hActiveCursorPM = hActiveCursor = 0; 445 445 } 446 446 return hActiveCursor; … … 593 593 bmpXor.bmBitsPixel = info->bBitsPerPixel; 594 594 bmpXor.bmBits = NULL; 595 ((CURSORICONINFO *)ptr)->hColorBmp = 595 ((CURSORICONINFO *)ptr)->hColorBmp = 596 596 OSLibWinCreatePointer(info, (char *)lpANDbits, (LPBITMAP_W)&bmpAnd, (char *)lpXORbits, (LPBITMAP_W)&bmpXor, fIcon == FALSE); 597 597 #endif … … 1085 1085 //SvL: Must use CreateBitmap here as CreateDIBitmap converts data to 8bpp (GetObjectA info -> 8 bpp) 1086 1086 #if 1 1087 int linewidth; 1087 int linewidth; 1088 1088 int orglinewidth; 1089 1089 -
branches/gcc-kmk/src/user32/winmouse.cpp
r21502 r21720 32 32 #include <commctrl.h> 33 33 #include <debugtools.h> 34 #include <win \mouse.h>34 #include <win/mouse.h> 35 35 #include "winmouse.h" 36 36 #include "oslibmsg.h" -
branches/gcc-kmk/src/user32/winproc.cpp
r10602 r21720 18 18 #include <string.h> 19 19 #include "callwrap.h" 20 #include <win \winproc.h>21 #include <win \debugtools.h>20 #include <win/winproc.h> 21 #include <win/debugtools.h> 22 22 #include <heapcode.h> 23 23 #include "win32wbase.h" … … 307 307 } 308 308 else dprintf2(("CallWindowProcA %x %x %x %x %x (unknown proc)", func, hwnd, msg, wParam, lParam)); 309 309 310 310 if(!IsWindow(hwnd)) { 311 311 dprintf2(("CallWindowProcA, window %x not found", hwnd)); -
branches/gcc-kmk/src/user32/wndmsg.cpp
r10511 r21720 13 13 #include <stdio.h> 14 14 #include <string.h> 15 #include <win \winmfcmsg.h>15 #include <win/winmfcmsg.h> 16 16 #include <spy.h> 17 17 #include "wndmsg.h"
Note:
See TracChangeset
for help on using the changeset viewer.
