Waarom vind ik dit werk ookweer leuk?

 
  • home
  • ik
  • journaal
  • onderwerpen
  • software
  • klassiekers
« Zwart of wit? Wouter's Journaal *tromgeroffel* » (software)
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;
}
© Wouter Coene, 2010 — valid xhtml 1.0 — valid css ​