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.

The Discussion

  • User profile image


  • User profile image


  • User profile image

    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



Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.