Top-Level Menu Items in Owner-Draw MenusLast reviewed: November 2, 1995Article ID: Q69969 |
The information in this article applies to:
SUMMARYMicrosoft Windows version 3.0 allows an application to specify owner-draw menus. This provides the application with complete control over the appearance of items in the menu. However, Windows 3.0 only supports owner- draw items in a pop-up menu. Top-level menu items with the MF_OWNERDRAW style do not work properly. In Windows 3.1, Windows NT, and Windows 95, top-level menu items with the MF_OWNERDRAW style work properly.
MORE INFORMATIONAn application may append an item with the MF_OWNERDRAW style to a top- level menu. At this point, the parent application should receive a WM_MEASUREITEM message and a WM_DRAWITEM message. However, a WM_MEASUREITEM message is never sent to the parent window for the menu item. In addition, the WM_DRAWITEM message is sent only when the selection state of the item changes (the action field in the DRAWITEMSTRUCT is equal to ODA_SELECTED). The WM_DRAWITEM message is not sent with the action field in the DRAWITEMSTRUCT equal to ODA_DRAWENTIRE.
|
Additional reference words: 3.00 3.10 3.50 4.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |