RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMenu.WindowHandle Property

Provides access to the handle of the window that uses the menu.

Pascal
property WindowHandle: HWND;
C++
__property HWND WindowHandle;

Read WindowHandle to get the window handle of the control that receives WM_COMMAND messages when the user clicks on an item in the menu. When menu items are selected, use this handle in an OnClick event handler to send messages to the control that uses the menu or to make Windows API calls that affect the control.  

Set WindowHandle to associate the menu with a control. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!