Solved

Forcing the framework to update commands via ON_UPDATE_COMMAND_UI

Posted on 1998-04-19
1
374 Views
Last Modified: 2013-11-20
I need to force the framework to call the necessary OnUpdatexxx( CCmdUI * ) functions before an area of intense processing in my program.  In the processing loop, I am sure to call

while ( PeekMessage( &msg, NULL, 0, 0, WM_NOREMOVE ) )
  App.PumpMessage();

This allows for screen repaints and access to other parts of the program, but the framework does not take the opportunity to update the status of the toolbar buttons.

Note that the status will not change once the intense processing loop is entered; they do change right before the loop is entered, however.

Any ideas?
0
Comment
Question by:krw
1 Comment
 
LVL 10

Accepted Solution

by:
RONSLOW earned 50 total points
ID: 1300425
Call CWinApp::OnIdle(0) to do idle processint (including UpdateCmdUI processing).

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now