Print Page | Close Window

SetRibbonMinimized and Ctrl+F1

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=14730
Printed Date: 27 February 2025 at 5:19pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SetRibbonMinimized and Ctrl+F1
Posted By: MGebler
Subject: SetRibbonMinimized and Ctrl+F1
Date Posted: 13 July 2009 at 2:59am
Let's have a look at your ribbon sample. There you have defined a accelerator (ID_TOGGLE_GROUPS ... Ctrl+VK_F1) to toglle the minimize state of the ribbon. Now add ON_WM_HELPINFO and the correspondending method 'afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo)' to the main framewindow.
 
If you press now the keys 'ctrl+f1' both methods are called (first OnToggleGroups, followed by OnHelpInfo).
 
Why is the WM_HELP message pumped through the message queue even if the message, generated by the accelerator was already handled?
 
With best regards
  Marcus
 
 



Replies:
Posted By: MGebler
Date Posted: 19 July 2009 at 8:30am
Is there anybody out there...
... or is this bug not worth to receive a short answer from the support team ?

I always renewed my subscription in time; so what is the problem !


Posted By: ABuenger
Date Posted: 19 July 2009 at 9:02am
Originally posted by MGebler MGebler wrote:


I always renewed my subscription in time; so what is the problem !


Maybe your impatience? Also for support open a ticket and attach a sample to reproduce the problem.



-------------
Codejock support


Posted By: Kenneth
Date Posted: 19 July 2009 at 9:20am
What is this?  MGebler stated the problem was with Codejock's own sample.  This excuse of opening a ticket is getting a bit old if you ask me.  What was reported is a global problem, not one unique to MGebler.  A perfect problem for the forum.  And waiting 5-6 days is not being impatient.
 


Posted By: MGebler
Date Posted: 19 July 2009 at 4:27pm
I have created a standard MFC application and found out, that it is a problem of the MFC framework.

Do you have an idea, how we can 'work-around' this. Due to the customization of the accelerator keys I can not know, which commands are executed by the ctrl+F1 combination.


Posted By: znakeeye
Date Posted: 20 July 2009 at 7:35am

Search the MFC sources for WM_HELP (and ID_HELP) and you might find a clue...



-------------
PokerMemento - http://www.pokermemento.com/


Posted By: MGebler
Date Posted: 20 July 2009 at 10:47am
I my opinion the combination CTRL+F1 is hard coded. If you watch the call stack you can see that user32.dll is called with the nMsg-value 77 (????) and leaves the user32.dll by calling mfc80.dll!AfxWndProcBase with the nMsg-value 83 (=WM_HELP). Some mysterial OS-code changed the message-id.

The actual problem is, that some of us signed the 'Microsoft Office 2007 UI license' and our applications can't even handle the common shortcut for minimizing the ribbon.

Sorry, but I am so bored of spending more time on the lacks of UI-frameworks than on our own code (here MFC not XTP).





Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net