Solved

COMMAND_UI

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…

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