Changeset 7616 for trunk/src/comctl32/toolbar.c
- Timestamp:
- Dec 12, 2001, 1:49:34 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 */
Note:
See TracChangeset
for help on using the changeset viewer.