Solved

COMMAND_UI

Posted on 1997-03-17
1
587 Views
Last Modified: 2013-12-03
I have in mainfrm.cpp re: StatusCtrl
ON_MESSAGE(ON_MY_UPDATE_PANE1, OnMyUpdatePane1)
ON_UPDATE_COMMAND_UI(ID_DONE_RECS,OnUpdatePane1)
My
  SendMessage(hMain,ON_MY, 0,0)
gets to OnMyUpdatePane1
I now need to send a msg allowing
OnUpdatePane1( ) to update the pane
via it's    pCmdUI.
I would try
  SendMessage(WM_UPDATE_COMMAND_UI, ID_DONE_RECS
but there is none by that name.
How do I trigger this update event?
0
Comment
Question by:mbarron
1 Comment
 
LVL 23

Accepted Solution

by:
chensu earned 50 total points
Comment Utility
The message should be WM_IDLEUPDATECMDUI which is internally used by MFC. Instead, you can try calling ::AfxGetApp()->OnIdle(0) to trigger the update event.

0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

744 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

17 Experts available now in Live!

Get 1:1 Help Now