Changeset 2834 for trunk/src/user32/win32wbasenonclient.cpp
- Timestamp:
- Feb 20, 2000, 7:28:35 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbasenonclient.cpp
r2803 r2834 1 /* $Id: win32wbasenonclient.cpp,v 1.1 1 2000-02-16 14:28:23 sandervlExp $ */1 /* $Id: win32wbasenonclient.cpp,v 1.12 2000-02-20 18:28:35 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 (non-client methods) … … 39 39 #include <menu.h> 40 40 41 #define DBG_LOCALLOG 41 #define DBG_LOCALLOG DBG_win32wbasenonclient 42 42 #include "dbglocal.h" 43 43 … … 49 49 #define KEYDATA_PREVSTATE 0x4000 50 50 51 static HBITMAP hbitmapClose = 0; 52 static HBITMAP hbitmapCloseD = 0; 53 static HBITMAP hbitmapMinimize = 0; 51 static INT bitmapW = 16,bitmapH = 14; //CB: todo: use these values 52 static HBITMAP hbitmapClose = 0; 53 static HBITMAP hbitmapCloseD = 0; 54 static HBITMAP hbitmapMinimize = 0; 54 55 static HBITMAP hbitmapMinimizeD = 0; 55 static HBITMAP hbitmapMaximize = 0;56 static HBITMAP hbitmapMaximize = 0; 56 57 static HBITMAP hbitmapMaximizeD = 0; 57 static HBITMAP hbitmapRestore = 0; 58 static HBITMAP hbitmapRestoreD = 0; 58 static HBITMAP hbitmapRestore = 0; 59 static HBITMAP hbitmapRestoreD = 0; 60 static HBITMAP hbitmapHelp = 0; 61 static HBITMAP hbitmapHelpD = 0; 59 62 60 63 BYTE lpGrayMask[] = { 0xAA, 0xA0, … … 606 609 607 610 /* Draw frame */ 608 PatBlt(hdc,rect->left, rect->top, rect->right-rect->left, height,PATCOPY); 609 PatBlt(hdc,rect->left, rect->top, width, rect->bottom-rect->top,PATCOPY); 610 PatBlt(hdc,rect->left, rect->bottom-1, rect->right-rect->left,-height,PATCOPY); 611 PatBlt(hdc,rect->right-1,rect->top, -width, rect->bottom-rect->top,PATCOPY); 611 PatBlt(hdc,rect->left, rect->top, rect->right-rect->left, height,PATCOPY); //top 612 PatBlt(hdc,rect->left, rect->top, width, rect->bottom-rect->top,PATCOPY); //left 613 PatBlt(hdc,rect->left, rect->bottom-1, rect->right-rect->left,-height,PATCOPY); //bottom 614 PatBlt(hdc,rect->right-1,rect->top, -width, rect->bottom-rect->top,PATCOPY); //right 612 615 SelectObject(hdc,oldBrush); 613 616 … … 729 732 (down ? hbitmapRestoreD : hbitmapRestore ) : 730 733 (down ? hbitmapMaximizeD: hbitmapMaximize); 731 hOldBmp =SelectObject( hdcMem, hBmp );734 hOldBmp = SelectObject( hdcMem, hBmp ); 732 735 GetObjectA (hBmp, sizeof(BITMAP), &bmp); 733 736 … … 885 888 hbitmapRestore = LoadBitmapA(0,MAKEINTRESOURCEA(OBM_RESTORE)); 886 889 hbitmapRestoreD = LoadBitmapA(0,MAKEINTRESOURCEA(OBM_RESTORED)); 890 hbitmapHelp = LoadBitmapA(0,MAKEINTRESOURCEA(OBM_HELP)); 891 hbitmapHelpD = LoadBitmapA(0,MAKEINTRESOURCEA(OBM_HELPD)); 887 892 } 888 893 … … 892 897 r.left += GetSystemMetrics(SM_CYCAPTION) - 1; 893 898 } 894 895 //CB: todo: integrate help button896 899 897 900 if (dwStyle & WS_SYSMENU) … … 905 908 DrawCloseButton(memDC,&r2,FALSE, 906 909 ((((state & MF_DISABLED) || (state & MF_GRAYED))) && (state != 0xFFFFFFFF))); 907 r.right -= GetSystemMetrics(SM_CYCAPTION) - 1; 910 r.right -= GetSystemMetrics(SM_CYCAPTION)-1; 911 912 if (dwExStyle & WS_EX_CONTEXTHELP) 913 { 914 #if 0 //CB: todo: integrate help button 915 DrawHelpButton(memDC,&r2,FALSE); 916 r.right -= bitmapW; 917 #endif 918 } 908 919 909 920 if ((dwStyle & WS_MAXIMIZEBOX) || (dwStyle & WS_MINIMIZEBOX))
Note:
See TracChangeset
for help on using the changeset viewer.