- Timestamp:
- Dec 12, 2001, 1:49:34 PM (24 years ago)
- Location:
- trunk/src/comctl32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/comboex.c
r6709 r7616 128 128 INT selected; /* index of selected item */ 129 129 DWORD flags; /* WINE internal flags */ 130 #ifdef __WIN32OS2__ 131 HFONT hDefaultFont; 132 #endif 130 133 HFONT font; 134 131 135 INT nb_items; /* Number of items */ 132 136 BOOL bUnicode; /* TRUE if this window is Unicode */ … … 1221 1225 SystemParametersInfoA (SPI_GETICONTITLELOGFONT, sizeof(mylogfont), 1222 1226 &mylogfont, 0); 1227 #ifdef __WIN32OS2__ 1228 infoPtr->font = infoPtr->hDefaultFont = CreateFontIndirectA (&mylogfont); 1229 #else 1223 1230 infoPtr->font = CreateFontIndirectA (&mylogfont); 1231 #endif 1224 1232 } 1225 1233 SendMessageW (infoPtr->hwndCombo, WM_SETFONT, (WPARAM)infoPtr->font, 0); … … 1762 1770 } 1763 1771 1772 #ifdef __WIN32OS2__ 1773 //NEVER delete the font object received by WM_SETFONT! 1774 DeleteObject (infoPtr->hDefaultFont); 1775 #else 1764 1776 DeleteObject (infoPtr->font); 1777 #endif 1765 1778 1766 1779 /* free comboex info data */ -
trunk/src/comctl32/rebar.c
r6705 r7616 209 209 HWND hwndToolTip; /* handle to the tool tip control */ 210 210 HWND hwndNotify; /* notification window (parent) */ 211 #ifdef __WIN32OS2__ 212 HFONT hDefaultFont; 213 #endif 211 214 HFONT hFont; /* handle to the rebar's font */ 212 215 SIZE imageSize; /* image size (image list) */ … … 3633 3636 DeleteObject (infoPtr->hcurVert); 3634 3637 DeleteObject (infoPtr->hcurDrag); 3638 3639 #ifdef __WIN32OS2__ 3640 //NEVER delete the font object received by WM_SETFONT! 3641 DeleteObject (infoPtr->hDefaultFont); 3642 #else 3635 3643 DeleteObject (infoPtr->hFont); 3644 #endif 3636 3645 SetWindowLongA (infoPtr->hwndSelf, 0, 0); 3637 3646 … … 3847 3856 tfont = CreateFontIndirectA (&ncm.lfCaptionFont); 3848 3857 if (tfont) { 3858 #ifdef __WIN32OS2__ 3859 infoPtr->hFont = infoPtr->hDefaultFont = tfont; 3860 #else 3849 3861 infoPtr->hFont = tfont; 3862 #endif 3850 3863 } 3851 3864 -
trunk/src/comctl32/toolbar.c
r6705 r7616 102 102 INT nOldHit; 103 103 INT nHotItem; /* index of the "hot" item */ 104 #ifdef __WIN32OS2__ 105 HFONT hDefaultFont; 106 #endif 104 107 HFONT hFont; /* text font */ 105 108 HIMAGELIST himlInt; /* image list created internally */ … … 4042 4045 4043 4046 SystemParametersInfoA (SPI_GETICONTITLELOGFONT, 0, &logFont, 0); 4047 #ifdef __WIN32OS2__ 4048 infoPtr->hFont = infoPtr->hDefaultFont = CreateFontIndirectA (&logFont); 4049 #else 4044 4050 infoPtr->hFont = CreateFontIndirectA (&logFont); 4051 #endif 4045 4052 4046 4053 if (dwStyle & TBSTYLE_TOOLTIPS) { … … 4099 4106 4100 4107 /* delete default font */ 4108 #ifdef __WIN32OS2__ 4109 //NEVER delete the font object received by WM_SETFONT! 4110 if (infoPtr->hDefaultFont) 4111 DeleteObject (infoPtr->hDefaultFont); 4112 #else 4101 4113 if (infoPtr->hFont) 4102 4114 DeleteObject (infoPtr->hFont); 4115 #endif 4103 4116 4104 4117 /* free toolbar info data */ -
trunk/src/comctl32/tooltips.cpp
r7408 r7616 26 26 #include "commctrl.h" 27 27 #include "ccbase.h" 28 #include "tooltips.h"29 28 #include "comctl32.h" 30 29 … … 33 32 #define ID_TIMERLEAVE 3 /* tool leave timer */ 34 33 34 35 typedef struct tagTT_SUBCLASS_INFO 36 { 37 WNDPROC wpOrigProc; 38 HWND hwndToolTip; 39 UINT uRefCount; 40 } TT_SUBCLASS_INFO, *LPTT_SUBCLASS_INFO; 41 42 43 typedef struct tagTTTOOL_INFO 44 { 45 UINT uFlags; 46 HWND hwnd; 47 UINT uId; 48 RECT rect; 49 HINSTANCE hinst; 50 LPWSTR lpszText; 51 LPARAM lParam; 52 } TTTOOL_INFO; 53 54 55 typedef struct tagTOOLTIPS_INFO 56 { 57 COMCTL32_HEADER header; 58 59 WCHAR szTipText[INFOTIPSIZE]; 60 BOOL bActive; 61 BOOL bTrackActive; 62 UINT uNumTools; 63 COLORREF clrBk; 64 COLORREF clrText; 65 #ifdef __WIN32OS2__ 66 HFONT hDefaultFont; 67 #endif 68 HFONT hFont; 69 INT xTrackPos; 70 INT yTrackPos; 71 INT nMaxTipWidth; 72 INT nTool; 73 INT nOldTool; 74 INT nCurrentTool; 75 INT nTrackTool; 76 INT nAutomaticTime; 77 INT nReshowTime; 78 INT nAutoPopTime; 79 INT nInitialTime; 80 RECT rcMargin; 81 82 TTTOOL_INFO *tools; 83 } TOOLTIPS_INFO; 35 84 36 85 extern LPSTR COMCTL32_aSubclass; /* global subclassing atom */ … … 2002 2051 nclm.cbSize = sizeof(NONCLIENTMETRICSA); 2003 2052 SystemParametersInfoA(SPI_GETNONCLIENTMETRICS,0,&nclm,0); 2053 2054 #ifdef __WIN32OS2__ 2055 infoPtr->hFont = infoPtr-> hDefaultFont = CreateFontIndirectA(&nclm.lfStatusFont); 2056 #else 2004 2057 infoPtr->hFont = CreateFontIndirectA(&nclm.lfStatusFont); 2058 #endif 2005 2059 2006 2060 infoPtr->nMaxTipWidth = -1; … … 2079 2133 2080 2134 /* delete font */ 2135 #ifdef __WIN32OS2__ 2136 //NEVER delete the font object received by WM_SETFONT! 2137 DeleteObject (infoPtr->hDefaultFont); 2138 #else 2081 2139 DeleteObject (infoPtr->hFont); 2140 #endif 2082 2141 2083 2142 /* free tool tips info data */ … … 2286 2345 infoPtr->clrText = GetSysColor (COLOR_INFOTEXT); 2287 2346 2347 #ifdef __WIN32OS2__ 2348 //NEVER delete the font object received by WM_SETFONT! 2349 DeleteObject (infoPtr->hDefaultFont); 2350 #else 2288 2351 DeleteObject (infoPtr->hFont); 2352 #endif 2289 2353 nclm.cbSize = sizeof(NONCLIENTMETRICSA); 2290 2354 SystemParametersInfoA (SPI_GETNONCLIENTMETRICS, 0, &nclm, 0); 2355 #ifdef __WIN32OS2__ 2356 infoPtr->hFont = infoPtr->hDefaultFont = CreateFontIndirectA (&nclm.lfStatusFont); 2357 #else 2291 2358 infoPtr->hFont = CreateFontIndirectA (&nclm.lfStatusFont); 2292 2359 #endif 2293 2360 return 0; 2294 2361 }
Note:
See TracChangeset
for help on using the changeset viewer.