Solved

Forcing the framework to update commands via ON_UPDATE_COMMAND_UI

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
cat dog challenge 18 127
Error on moodle after upgrade 3 140
Line meaning 9 88
How do I get Window Title of all opened process? 4 14
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.

829 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