Suggestion for CMFCToolBarsCustomizeDialog: - by David Webber

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 588167 Comments
Status Closed Workarounds
Type Suggestion Repros 0
Opened 8/22/2010 6:56:21 AM
Access Restriction Public


Could we have a virtual function call when a keyboard accelerator is *removed*?   (When an accelerator is added, a virtual function CMFCToolBarsCustomizeDialog::OnAssignKey() is called.   It would be nice to have a similar facility when a shortcut is removed.)

My situation: I have another modeless dialogue box which lists shortcuts. In CMFCToolBarsCustomizeDialog::OnAssignKey() I post the main frame window a private message to say that the shortcuts have changed (which, by the time it is received, they have).   This updates my other dialogue.

I'd like to do it also when a shorcut is removed, but I can't find a way to do that.    (As a second best, I actually post the message in my derived customisation dialogue's OnDestroy() function so when the customisation dialogue exits, the other one refreshes its shortcuts.)


David Webber
Mozart Music Software
For discussion and support see
Sign in to post a comment.
Posted by Microsoft on 9/14/2010 at 9:43 AM
Hello David,

Thanks for the suggestion. The OnRemoveKey method has been added to MFC for the next major release of Visual Studio.

Pat Brenner
Visual C++ Libraries Development
Posted by Microsoft on 8/22/2010 at 5:03 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(