Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

COMMAND_UI

Posted on 1997-03-17
1
Medium Priority
?
610 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 100 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
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…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

604 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