Willem's...

{rue if I mellow}

  Home  |   Contact  |   Syndication    |   Login
  25 Posts | 0 Stories | 224 Comments | 51 Trackbacks

News

Archives

Post Categories

Businessware Architects

XML-FX.COM

June 2007 Entries

MFC provides a rather neat way of updating the state of window elements in an MFC CWnd (or derived) object during application idle-time. Typically, this is done by setting the element ID and member function in the ON_UPDATE_COMMAND_UI macro, and then declaring the function in the class header file: afx_msg void OnUpdateMyCommand(CCmdUI* pCmdUI); Then you implement the handler as follows: void CMyClass::OnUpdateMyCommand... pCmdUI) { if(IsMyCommandAvailable()) pCmdUI->Enable(TRUE); } This...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati