Multiple Selection Menu – Part 2

The previous article showed how tu use a WH_MSGFILTER hook in order to make a menu with multiple selection. Now, let’s see an MFC-extension class that implements a context pop-up menu with multiple selection. CMultiSelPopupMenu class class CMultiSelPopupMenu : public CMenu { // Construction public: CMultiSelPopupMenu(UINT nIDResource, UINT nSubMenu); // Operations public: void MDX_Check(CDataExchange* pDX, WORD wItemID, BOOL& … Read more

Multiple Selection Menu – Part 1

Introduction In some applications we can find menus which allow multiple selection. One example is the pop-up menu shown by Microsoft Visual Studio for adding or removing toolbar buttons. We’ll try to do something similar in our own MFC application. Finding a solution By default, a native Windows pop-up menu is dismissed when the user … Read more