Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » "Don't hide selection" option in AdoRecordSetView Collapse All
Subject Author Date
Bogdan Munteanu Feb 7, 2011 - 5:28 PM

Hello all,

In the AdoRecordsetView project I added the __EGBS_NO_HIDE_SELECTION option to the SiwModifyStyle() call in ChildView.cpp.
However, while switching to a different window, the cell being selected in the grid loses its focus despite the parameter above.
Is there another flag (or combination of flags) I should have specified to indicate the cell currently selected even if the focus is in a different window?
Please note, if I switch back to the AdoRecordsetView executable, the selected cell is displayed correctly.

I appreciate your help, thank you,

Bogdan

Technical Support Feb 9, 2011 - 11:51 AM

Thank you for reporting this issue. To fix it, please update source code for the following two methods:

COLORREF CExtScrollItemWnd::OnSiwGetReadOnlyBackgroundColor() const
{
    ASSERT_VALID( this );
    return COLORREF(-1L);
}

COLORREF CExtPropertyGridWnd::OnSiwGetReadOnlyTextColor() const
{
    __EXT_DEBUG_GRID_ASSERT_VALID( this );
    return OnSiwGetSysColor( COLOR_WINDOW );
}

Bogdan Munteanu Feb 12, 2011 - 8:41 PM

It worked. Thank you very much.