Solved

COMMAND_UI

Posted on 1997-03-17
1
599 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 23

Accepted Solution

by:
chensu earned 50 total points
ID: 1298798
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

724 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