Note that there are some explanatory texts on larger screens.

plurals
  1. PORibbon Button Event handler not called
    primarykey
    data
    text
    <p>I have 2 buttons and I added an event handler for both of those using the wizard and then I added the implementation like this:</p> <pre><code>void CTargetManApp::OnSetPS3() { TargetIsPS3 = InitPS3Target(); } void CTargetManApp::OnSetWin() { TargetIsPS3 = !deInitPS3(); } </code></pre> <p>with message type command but when I do click those bttons the event handlers are not called; I have added breakpoints there that are not hit. Any ideas?</p> <p>This is on VS2010 Win8 x64</p> <p>EDIT: This is the message map</p> <pre><code>BEGIN_MESSAGE_MAP(CTargetManApp, CWinAppEx) ON_COMMAND(ID_APP_ABOUT, &amp;CTargetManApp::OnAppAbout) ON_COMMAND(ID_FILE_NEW, &amp;CTargetManApp::OnFileNew) ON_COMMAND(ID_FILE_IMPORT, &amp;CTargetManApp::OnFileImport) ON_COMMAND(ID_BUTTON_NEWCLASS, &amp;CTargetManApp::OnButtonNewclass) ON_COMMAND(ID_BUTTON_NOTES, &amp;CTargetManApp::OnButtonNotes) ON_COMMAND(ID_BUTTON_HEADER, &amp;CTargetManApp::OnButtonHeader) ON_COMMAND(ID_BUTTON_FOOTER, &amp;CTargetManApp::OnButtonFooter) ON_COMMAND(ID_FILE_SAVE, &amp;CTargetManApp::OnFileSave) ON_COMMAND(ID_FILE_SAVE_AS, &amp;CTargetManApp::OnFileSaveAs) ON_COMMAND(ID_FILE_OPEN, &amp;CTargetManApp::OnFileOpen) ON_COMMAND(ID_BUTTON_RESET, &amp;CTargetManApp::OnButtonReset) ON_COMMAND(ID_BUTTON_PAUSE, &amp;CTargetManApp::OnButtonPause) ON_COMMAND(ID_BUTTON_RESUME, &amp;CTargetManApp::OnButtonResume) ON_COMMAND(ID_BUTTON_KILL, &amp;CTargetManApp::OnButtonKill) ON_UPDATE_COMMAND_UI(ID_BUTTON_PAUSE, &amp;CTargetManApp::OnUpdateButtonPause) ON_UPDATE_COMMAND_UI(ID_BUTTON_RESUME, &amp;CTargetManApp::OnUpdateButtonResume) ON_UPDATE_COMMAND_UI(ID_BUTTON_KILL, &amp;CTargetManApp::OnUpdateButtonKill) ON_COMMAND(ID_BUTTON_GENERATE, &amp;CTargetManApp::OnButtonGenerate) ON_COMMAND(ID_BUTTON_CLEAN, &amp;CTargetManApp::OnButtonClean) ON_UPDATE_COMMAND_UI(ID_BUTTON_CLEAN, &amp;CTargetManApp::OnUpdateButtonClean) ON_UPDATE_COMMAND_UI(ID_FILE_SAVE, &amp;CTargetManApp::OnUpdateFileSave) ON_COMMAND(ID_BUTTON6, &amp;CTargetManApp::OnSetPS3) ON_COMMAND(BtnTargetWin, &amp;CTargetManApp::OnSetWin) END_MESSAGE_MAP() </code></pre> <p>every other button works... This is an old project of mine but only thing different is that now i run VS2010 on Win8 instead of Win7</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload