« Zwart of wit?
Wouter's Journaal
*tromgeroffel* »
2008-07-26 14:48
Drie dagen uitzoekwerk voor 'n één-regelige fix...
int
CXConfPropertyGrid::OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT message)
{
// The property grid itself gets a WM_MOUSEACTIVATE message whenever a
// click is registered within its boundaries. The default handler for
// this message returns MA_ACTIVATE, setting focus to the grid itself.
// If an in-place edit control was active, this would cause the edit
// control to get inactive on a second click, which is highly irritating
// behaviour for users. Returning MA_NOACTIVATE here fixes this issue.
//
// Great, another comment that is longer than the actual fix :)
return MA_NOACTIVATE;
}