Solved

COMMAND_UI

Posted on 1997-03-17
1
596 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 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