Changeset 1253 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Oct 11, 1999, 10:54:26 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r1248 r1253 1 /* $Id: win32wbase.cpp,v 1.3 5 1999-10-11 16:04:51 cbratschiExp $ */1 /* $Id: win32wbase.cpp,v 1.36 1999-10-11 20:54:25 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 58 58 !(style & (WS_CHILD | WS_POPUP)) 59 59 60 void PrintWindowStyle(DWORD dwStyle, DWORD dwExStyle); 61 60 62 //****************************************************************************** 61 63 //****************************************************************************** … … 134 136 hwndHorzScroll = 0; 135 137 hwndVertScroll = 0; 138 139 ownDC = 0; 136 140 } 137 141 //****************************************************************************** … … 185 189 INT sw = SW_SHOW; 186 190 POINT maxSize, maxPos, minTrack, maxTrack; 191 192 #ifdef DEBUG 193 PrintWindowStyle(cs->style, cs->dwExStyle); 194 #endif 187 195 188 196 SetLastError(0); … … 1457 1465 if( ctlType == CTLCOLOR_SCROLLBAR) 1458 1466 { 1459 1467 HBRUSH hb = GetSysColorBrush(COLOR_SCROLLBAR); 1460 1468 COLORREF bk = GetSysColor(COLOR_3DHILIGHT); 1461 1469 SetTextColor( hdc, GetSysColor(COLOR_3DFACE)); … … 1478 1486 SetTextColor( hdc, GetSysColor(COLOR_WINDOWTEXT)); 1479 1487 1480 1481 1482 1483 1484 1485 1486 1487 1488 1488 if ((ctlType == CTLCOLOR_EDIT) || (ctlType == CTLCOLOR_LISTBOX)) 1489 { 1490 SetBkColor( hdc, GetSysColor(COLOR_WINDOW) ); 1491 } 1492 else 1493 { 1494 SetBkColor( hdc, GetSysColor(COLOR_3DFACE) ); 1495 return (LRESULT)GetSysColorBrush(COLOR_3DFACE); 1496 } 1489 1497 return (LRESULT)GetSysColorBrush(COLOR_WINDOW); 1490 1498 } … … 1532 1540 1533 1541 case WM_CTLCOLOR: 1534 1542 return DefWndControlColor(HIWORD(lParam), (HDC)wParam); 1535 1543 1536 1544 case WM_VKEYTOITEM: … … 2044 2052 wpos.hwnd = getWindowHandle(); 2045 2053 2046 if(~fuFlags & (SWP_NOMOVE | SWP_NOSIZE)) { 2054 if(~fuFlags & (SWP_NOMOVE | SWP_NOSIZE)) 2055 { 2047 2056 if (isChild()) 2048 2057 { … … 2088 2097 if (rc == FALSE) 2089 2098 { 2099 dprintf(("OSLibWinSetMultWindowPos failed!")); 2090 2100 } 2091 2101 else … … 2636 2646 //****************************************************************************** 2637 2647 //****************************************************************************** 2648 #ifdef DEBUG 2649 void PrintWindowStyle(DWORD dwStyle, DWORD dwExStyle) 2650 { 2651 char style[256] = ""; 2652 char exstyle[256] = ""; 2653 2654 /* Window styles */ 2655 if(dwStyle & WS_CHILD) 2656 strcat(style, "WS_CHILD "); 2657 if(dwStyle & WS_POPUP) 2658 strcat(style, "WS_POPUP "); 2659 if(dwStyle & WS_VISIBLE) 2660 strcat(style, "WS_VISIBLE "); 2661 if(dwStyle & WS_DISABLED) 2662 strcat(style, "WS_DISABLED "); 2663 if(dwStyle & WS_CLIPSIBLINGS) 2664 strcat(style, "WS_CLIPSIBLINGS "); 2665 if(dwStyle & WS_CLIPCHILDREN) 2666 strcat(style, "WS_CLIPCHILDREN "); 2667 if(dwStyle & WS_MAXIMIZE) 2668 strcat(style, "WS_MAXIMIZE "); 2669 if(dwStyle & WS_MINIMIZE) 2670 strcat(style, "WS_MINIMIZE "); 2671 if(dwStyle & WS_GROUP) 2672 strcat(style, "WS_GROUP "); 2673 if(dwStyle & WS_TABSTOP) 2674 strcat(style, "WS_TABSTOP "); 2675 2676 if((dwStyle & WS_CAPTION) == WS_CAPTION) 2677 strcat(style, "WS_CAPTION "); 2678 if(dwStyle & WS_DLGFRAME) 2679 strcat(style, "WS_DLGFRAME "); 2680 if(dwStyle & WS_BORDER) 2681 strcat(style, "WS_BORDER "); 2682 2683 if(dwStyle & WS_VSCROLL) 2684 strcat(style, "WS_VSCROLL "); 2685 if(dwStyle & WS_HSCROLL) 2686 strcat(style, "WS_HSCROLL "); 2687 if(dwStyle & WS_SYSMENU) 2688 strcat(style, "WS_SYSMENU "); 2689 if(dwStyle & WS_THICKFRAME) 2690 strcat(style, "WS_THICKFRAME "); 2691 if(dwStyle & WS_MINIMIZEBOX) 2692 strcat(style, "WS_MINIMIZEBOX "); 2693 if(dwStyle & WS_MAXIMIZEBOX) 2694 strcat(style, "WS_MAXIMIZEBOX "); 2695 2696 if(dwExStyle & WS_EX_DLGMODALFRAME) 2697 strcat(exstyle, "WS_EX_DLGMODALFRAME "); 2698 if(dwExStyle & WS_EX_ACCEPTFILES) 2699 strcat(exstyle, "WS_EX_ACCEPTFILES "); 2700 if(dwExStyle & WS_EX_NOPARENTNOTIFY) 2701 strcat(exstyle, "WS_EX_NOPARENTNOTIFY "); 2702 if(dwExStyle & WS_EX_TOPMOST) 2703 strcat(exstyle, "WS_EX_TOPMOST "); 2704 if(dwExStyle & WS_EX_TRANSPARENT) 2705 strcat(exstyle, "WS_EX_TRANSPARENT "); 2706 2707 if(dwExStyle & WS_EX_MDICHILD) 2708 strcat(exstyle, "WS_EX_MDICHILD "); 2709 if(dwExStyle & WS_EX_TOOLWINDOW) 2710 strcat(exstyle, "WS_EX_TOOLWINDOW "); 2711 if(dwExStyle & WS_EX_WINDOWEDGE) 2712 strcat(exstyle, "WS_EX_WINDOWEDGE "); 2713 if(dwExStyle & WS_EX_CLIENTEDGE) 2714 strcat(exstyle, "WS_EX_CLIENTEDGE "); 2715 if(dwExStyle & WS_EX_CONTEXTHELP) 2716 strcat(exstyle, "WS_EX_CONTEXTHELP "); 2717 if(dwExStyle & WS_EX_RIGHT) 2718 strcat(exstyle, "WS_EX_RIGHT "); 2719 if(dwExStyle & WS_EX_LEFT) 2720 strcat(exstyle, "WS_EX_LEFT "); 2721 if(dwExStyle & WS_EX_RTLREADING) 2722 strcat(exstyle, "WS_EX_RTLREADING "); 2723 if(dwExStyle & WS_EX_LTRREADING) 2724 strcat(exstyle, "WS_EX_LTRREADING "); 2725 if(dwExStyle & WS_EX_LEFTSCROLLBAR) 2726 strcat(exstyle, "WS_EX_LEFTSCROLLBAR "); 2727 if(dwExStyle & WS_EX_RIGHTSCROLLBAR) 2728 strcat(exstyle, "WS_EX_RIGHTSCROLLBAR "); 2729 if(dwExStyle & WS_EX_CONTROLPARENT) 2730 strcat(exstyle, "WS_EX_CONTROLPARENT "); 2731 if(dwExStyle & WS_EX_STATICEDGE) 2732 strcat(exstyle, "WS_EX_STATICEDGE "); 2733 if(dwExStyle & WS_EX_APPWINDOW) 2734 strcat(exstyle, "WS_EX_APPWINDOW "); 2735 2736 dprintf(("Window style: %x %s", dwStyle, style)); 2737 dprintf(("Window exStyle: %x %s", dwExStyle, exstyle)); 2738 } 2739 #endif 2740 //****************************************************************************** 2741 //****************************************************************************** 2638 2742 2639 2743 GenericObject *Win32BaseWindow::windows = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.