- Timestamp:
- Jun 11, 2001, 10:08:26 PM (24 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/menu.cpp
r5935 r5968 1 /* $Id: menu.cpp,v 1.3 2 2001-06-09 14:50:18sandervl Exp $*/1 /* $Id: menu.cpp,v 1.33 2001-06-11 20:08:23 sandervl Exp $*/ 2 2 /* 3 3 * Menu functions … … 983 983 lppop->Width = lppop->Height = 0; 984 984 if (lppop->nItems == 0) return; 985 #ifdef __WIN32OS2__ 986 hdc = CreateCompatibleDC( 0 ); 987 #else 985 988 hdc = GetDC( 0 ); 989 #endif 986 990 987 991 SelectObject( hdc, hMenuFont); … … 1034 1038 lppop->Width += 2; 1035 1039 1040 #ifdef __WIN32OS2__ 1041 DeleteDC(hdc); 1042 #else 1036 1043 ReleaseDC( 0, hdc ); 1044 #endif 1037 1045 } 1038 1046 -
trunk/src/user32/win32wbase.cpp
r5964 r5968 1 /* $Id: win32wbase.cpp,v 1.26 3 2001-06-11 14:37:46sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.264 2001-06-11 20:08:24 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 2903 2903 2904 2904 dprintf(("EnumChildWindows of %x parameter %x %x (%x)", getWindowHandle(), lpfn, lParam, getFirstChild())); 2905 lock(); 2905 2906 for (child = (Win32BaseWindow *)getFirstChild(); child; child = (Win32BaseWindow *)child->getNextChild()) 2906 2907 { 2907 2908 dprintf(("EnumChildWindows: enumerating child %x (owner %x; parent %x)", child->getWindowHandle(), (child->getOwner()) ? child->getOwner()->getWindowHandle() : 0, getWindowHandle())); 2908 2909 hwnd = child->getWindowHandle(); 2909 if(child-> getOwner()) {2910 if(child->IsWindowDestroyed() || child->getOwner()) { 2910 2911 continue; //shouldn't have an owner (Wine) 2911 2912 } 2913 child->addRef(); 2914 unlock(); 2912 2915 if(lpfn(hwnd, lParam) == FALSE) 2913 2916 { 2914 rc = FALSE; 2915 break; 2916 } 2917 child->release(); 2918 return FALSE; 2919 } 2920 child->release(); 2921 lock(); 2917 2922 //check if the window still exists 2918 2923 if(!::IsWindow(hwnd)) … … 2924 2929 { 2925 2930 dprintf(("EnumChildWindows: Enumerate children of %x", child->getWindowHandle())); 2931 child->addRef(); 2932 unlock(); 2926 2933 if(child->EnumChildWindows(lpfn, lParam) == FALSE) 2927 2934 { 2928 rc = FALSE; 2929 break; 2930 } 2935 child->release(); 2936 return FALSE; 2937 } 2938 child->release(); 2939 lock(); 2931 2940 } 2932 2941 prevchild = child; 2933 2942 } 2943 unlock(); 2934 2944 return rc; 2935 2945 } … … 3476 3486 } 3477 3487 oldval = (LONG)WINPROC_GetProc(win32wndproc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A); 3478 dprintf(("SetWindowLong GWL_WNDPROC %x old %x new style%x", getWindowHandle(), oldval, value));3488 dprintf(("SetWindowLong GWL_WNDPROC %x old %x new wndproc %x", getWindowHandle(), oldval, value)); 3479 3489 WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, (WNDPROC)value, type, WIN_PROC_WINDOW); 3480 3490 break; -
trunk/src/user32/win32wmdichild.cpp
r5935 r5968 1 /* $Id: win32wmdichild.cpp,v 1.2 6 2001-06-09 14:50:23sandervl Exp $ */1 /* $Id: win32wmdichild.cpp,v 1.27 2001-06-11 20:08:25 sandervl Exp $ */ 2 2 /* 3 3 * Win32 MDI Child Window Class for OS/2 … … 303 303 if( !(client->getStyle() & MDIS_ALLCHILDSTYLES) ) 304 304 { 305 dprintf(("Fixing MDI window style! %x -> %x", style, style | WS_VISIBLE | WS_OVERLAPPEDWINDOW)); 305 306 style &= (WS_CHILD | WS_CLIPSIBLINGS | WS_MINIMIZE | WS_MAXIMIZE | 306 307 WS_CLIPCHILDREN | WS_DISABLED | WS_VSCROLL | WS_HSCROLL ); -
trunk/src/user32/win32wmdiclient.cpp
r5965 r5968 1 /* $Id: win32wmdiclient.cpp,v 1.3 6 2001-06-11 15:05:44sandervl Exp $ */1 /* $Id: win32wmdiclient.cpp,v 1.37 2001-06-11 20:08:25 sandervl Exp $ */ 2 2 /* 3 3 * Win32 MDI Client Window Class for OS/2 … … 253 253 rect.bottom = HIWORD(lParam); 254 254 255 AdjustWindowRectEx(&rect, GetWindowLongA(maximizedChild, GWL_STYLE), 0,GetWindowLongA(maximizedChild, GWL_EXSTYLE));255 AdjustWindowRectEx(&rect, ::GetWindowLongA(maximizedChild, GWL_STYLE), 0, ::GetWindowLongA(maximizedChild, GWL_EXSTYLE)); 256 256 ::MoveWindow(maximizedChild, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, 1); 257 257 } -
trunk/src/user32/winicon.cpp
r5728 r5968 1 /* $Id: winicon.cpp,v 1.2 3 2001-05-17 11:25:49sandervl Exp $ */1 /* $Id: winicon.cpp,v 1.24 2001-06-11 20:08:26 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Icon Code for OS/2 … … 809 809 } 810 810 811 #ifdef __WIN32OS2__ 812 if( (hdc = CreateCompatibleDC( 0 )) ) 813 #else 811 814 if( (hdc = GetDC( 0 )) ) 815 #endif 812 816 { 813 817 BITMAPINFO* pInfo; … … 998 1002 HeapFree( GetProcessHeap(), 0, pInfo ); 999 1003 } 1004 #ifdef __WIN32OS2__ 1005 DeleteDC(hdc ); 1006 #else 1000 1007 ReleaseDC( 0, hdc ); 1008 #endif 1001 1009 } 1002 1010
Note:
See TracChangeset
for help on using the changeset viewer.