The popup menu is TrackPopupMenu ;
CodePudding user response:
In the MFC simulation:Window 1 is landing window, the window 2 is the main window.
Login window 1, hide yourself, show window 2 (non-modal);
Window 2 time log out, then the pop-up menu, waiting for cancellation; Log out hidden himself and displayed his father;
Results: the menu will normally disappear;
Before I was with the duilib do, is also the login window hide themselves after login, non-modal shows the main window, but the main window is kicked, hide yourself, go back to the login window, but before the menu is showing,