Changeset 84 in dev for ProjectEditor/menu.cpp


Ignore:
Timestamp:
Mar 29, 2007, 3:28:28 AM (18 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ProjectEditor/menu.cpp

    r3 r84  
    210210    if(ppobj_MenuItemData[item_index]->str){
    211211        HDC hdc;
    212         hdc = GetDC(hOwner);
     212        hdc = GetDC(GetDesktopWindow());
    213213        HFONT hOldFont;
    214214        hOldFont = (HFONT)SelectObject(hdc, hMenuFont);
     
    220220
    221221        SelectObject(hdc,hOldFont);
    222         DeleteDC(hdc);
     222        ReleaseDC(GetDesktopWindow(),hdc);
    223223    }
    224224    else{
     
    347347    if(ppobj_MenuItemData[item_index]->str){
    348348        HDC hdc;
    349         hdc = GetDC(hOwner);
     349        hdc = GetDC(GetDesktopWindow());
    350350        HFONT hOldFont;
    351351        hOldFont = (HFONT)SelectObject(hdc, hMenuFont);
     
    357357
    358358        SelectObject(hdc,hOldFont);
    359         DeleteDC(hdc);
     359        ReleaseDC(GetDesktopWindow(),hdc);
    360360
    361361        pSize->cx+=50;
Note: See TracChangeset for help on using the changeset viewer.