Loading user information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading user information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Windows 7 Training Kit for Developers now available

To help prepare your applications for Windows 7, download the Windows 7 Training Kit for Developers. The kit includes code, videos and labs for both native Win32 C++ developers and .NET developers covering the new features available in Windows 7.


Follow the discussion

  • Oops, something didn't work.

    Getting subscription
    Subscribe to this conversation
  • Sweeeeeeet

  • veamos...

  • For Native Ribbon. I added global    HWND hWnd; // In RibbonApp.cpp


    MessageBox(hWnd, L"Clicked on My Button!", L"My Button Execute", MB_OK | MB_APPLMODAL);

    (i.e. hWnd instead of NULL and see the | MB_APPLMODAL so you HAVE to click the messagebox.


    And in Ribbon.cpp

    extern HWND hWnd;


    So that clicking Ribbon button twice (or more) does NOT give EXCEPTION when *exiting* sample.

    Hope that helps anyone doing the Ribbon. (i.e. clicking more than once to get the MessageBox.   Smiley



Remove this comment

Remove this thread


Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.