views:

55

answers:

0

Hi All,

I have a property grid on the right side of my app. By clicking on a tree item on the left side, properties of the clicked item are shown on the right side. However, whenever I change the value on the property grid control, the items turn in BOLD format and I get an error pointing to line 154 of MFC's afxpropertygridtooltipctrl.cpp.

Here's line 154:


    CFont* pPrevFont = m_hFont == NULL ? (CFont*) dc.SelectStockObject(DEFAULT_GUI_FONT) :
    dc.SelectObject(CFont::FromHandle(m_hFont));
    ENSURE(pPrevFont != NULL);

There must be a place in my code where I could prevent this from happening. Please help. Thanks