Ignore:
Timestamp:
Dec 12, 2001, 1:49:34 PM (24 years ago)
Author:
sandervl
Message:

font delete bugs removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comctl32/rebar.c

    r6705 r7616  
    209209    HWND     hwndToolTip; /* handle to the tool tip control */
    210210    HWND     hwndNotify;  /* notification window (parent) */
     211#ifdef __WIN32OS2__
     212    HFONT    hDefaultFont;
     213#endif
    211214    HFONT    hFont;       /* handle to the rebar's font */
    212215    SIZE     imageSize;   /* image size (image list) */
     
    36333636    DeleteObject (infoPtr->hcurVert);
    36343637    DeleteObject (infoPtr->hcurDrag);
     3638
     3639#ifdef __WIN32OS2__
     3640    //NEVER delete the font object received by WM_SETFONT!
     3641    DeleteObject (infoPtr->hDefaultFont);
     3642#else
    36353643    DeleteObject (infoPtr->hFont);
     3644#endif
    36363645    SetWindowLongA (infoPtr->hwndSelf, 0, 0);
    36373646
     
    38473856    tfont = CreateFontIndirectA (&ncm.lfCaptionFont);
    38483857    if (tfont) {
     3858#ifdef __WIN32OS2__
     3859        infoPtr->hFont = infoPtr->hDefaultFont = tfont;
     3860#else
    38493861        infoPtr->hFont = tfont;
     3862#endif
    38503863    }
    38513864
Note: See TracChangeset for help on using the changeset viewer.