Microsoft KB Archive/67689

INF: Keeping Status Line Information About Menus Up-to-Date

PSS ID Number: Q67689 Article last modified on 04-26-1993

3.00 WINDOWS

Summary: When a pop-up menu is opened with the mouse (by clicking on the menu), various items in the menu are highlighted as the mouse is moved. As the highlighted item changes, a WM_MENUSELECT message is sent to the application. This message can be processed to allow the application to update a status line. If the mouse is moved from the pop-up menu back into the menu bar, no item in the pop-up menu is highlighted. However, no WM_MENUSELECT message is sent to the application. Instead, Windows sends the application a WM_ENTERIDLE message. To keep the status line current, perform hit testing to determine if a pop-up menu item is selected during processing of the WM_ENTERIDLE message. The Software Library contains sample code to demonstrate these procedures. MENUSTAT can be found in the Software/Data Library by searching on the word MENUSTAT, the Q number of this article, or S12848. MENUSTAT was archived using the PKware file-compression utility.

Additional reference words: 3.00 3.0 KBCategory: KBSubcategory: UsrMenSelection Copyright Microsoft Corporation 1993.