13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

WM_MENUSELECTThe low-order word is ignored if the high-order word contains zero or 1.Applications should process this message when accelerators are used toselect bitmaps placed in a menu.WM_MENUSELECTThis message occurs when the user selects a menu item.Parameters wParam Identifies the item selected. If the selected item is a menu item,wParam contains the menu-item ID. If the selected itemcontains a pop-up menu, wParam contains the handle of thepop-up menu.CommentsIParamThe low-order word contains a combination of the followingmenu flags:ValueMF_BITMAPMF_CHECKEDMF _DISABLEDMF_GRAYEDMF _MOUSESELECTMF_OWNERDRAWMF_POPUPMF_SYSMENUMeaningItem is a bitmap.Item is checked.Item is disabled.Item is grayed.Item was selected with a mouse.Item is an owner-draw item.Item contains a pop-up menu.Item is contained in the Systemmenu. The high-order wordidentifies the menu associated withthe message.If the low-order word of the IParam parameter contains -1 and the highorderword contains zero, Windows has closed the menu because the userpressed ESC or clicked outside the menu. In this case, wParam will alsocontain zero.WM_MOUSEACTIVATEThis message occurs when the cursor is in an inactive window and anymouse button is pressed. The parent receives this message only if thechild passes it to the DefWindowProc function.Parameters wParam Contains a handle to the topmost parent window of thewindow being activated.Chapter 6, Messages directory 669

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!