cmfcribbonpanel

How to get notification for keydown for CMFCRibbonComboBox?

丶灬走出姿态 提交于 2019-12-24 07:58:37
问题 I have CMFCRibbonComboBox on ribonbar and I want when that user press on a key open droplist and select Item acurding to chars that press by user. For this purpose I want to get notification for keydown. How can I to do it? Thanks 回答1: I asked a very similar question on MSDN here and eventually solved it myself with the following hack; Save a local copy of C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\atlmfc\src\mfc\afxribbonedit.cpp to your project In BOOL CMFCRibbonRichEditCtrl:

How do I rename the MFC ribbon panel?

放肆的年华 提交于 2019-12-24 03:01:33
问题 I am programming a multi-language application which supports dynamical switch from one language to another. Since there is a GetName function in class CMFCRibbonPanel, I think there should also be a SetName function. But unfortunately I can't find the desired function. How do I rename a ribbon panel dynamically? Thank you very much. 回答1: the panel name is protected. you can derive your own class from CMFCRibbon and add a "SetName" method. class MyRibbonPanel : public CMFCRibbonPanel { public: