Home Dashboard Directory Help
Search

Suggestion for CMFCToolBarsCustomizeDialog: by David Webber


Status: 

Closed
 as Fixed Help for as Fixed


1
0
Sign in
to vote
Type: Suggestion
ID: 588167
Opened: 8/22/2010 6:56:21 AM
Access Restriction: Public
0
Workaround(s)
view

Description

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.)

Dave

--
David Webber
Mozart Music Software
http://www.mozart.co.uk
For discussion and support see
http://www.mozart.co.uk/mozartists/mailinglist.htm
Details
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(http://support.microsoft.com)
Sign in to post a workaround.