Solved

Forcing the framework to update commands via ON_UPDATE_COMMAND_UI

Posted on 1998-04-19
1
372 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
Comment Utility
Call CWinApp::OnIdle(0) to do idle processint (including UpdateCmdUI processing).

0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
ASCII Non-Printable characters/codes and their HTML equivalents 6 94
bigDiff challenge 17 74
NotAlone Challenge 20 70
Fibonacci challenge 11 81
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

762 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

12 Experts available now in Live!

Get 1:1 Help Now