IsIdleMessage handling |
Post Reply |
Author | |
Acooper
Newbie Joined: 11 January 2007 Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 07 May 2007 at 2:50pm |
Hello,
I am having an issue with my application where a OnUpdate event is getting fired constantly for a menu item. I found this post: https://forum.codejock.com/forum_posts.asp?TID=6090 ...which help explains my issue. I did override the CWinApp::IsIdleMessage method like such: BOOL CMyApp::IsIdleMessage(MSG *pMsg) { return FALSE; } This has solved the issue of the menu Update event from continually firing. However, I now have an issue where my ToolBar items are not getting refreshed properly. Whenever I click a ToolBar item, the button stays painted the click background color of the button, and not getting set back to the normal background color of the ToolBar items. Is there some logic I need to add to IsIdleMessage that will handle this, and are there other messages that I should be processing? Thanks in advance. - Andrew |
|
Acooper
Newbie Joined: 11 January 2007 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
It looks like I was able to solve my issue.
I removed the IsIdleMessage override, and simply checked the CCmdUI object from Update event to check if there is a valid m_pMenu object. Regards, Andrew |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |