Solved

Forcing the framework to update commands via ON_UPDATE_COMMAND_UI

Posted on 1998-04-19
1
375 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sumNumber challenge 16 122
countEvens challenge 2 100
sumHeights  challenge 17 70
Fibonacci challenge 11 121
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 …
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
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.

770 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