Visit Gigasoft's Web Site
 ProEssentials v9 Help

PEWN_CUSTOMMENU

The PEWN_CUSTOMMENU notification message is sent to the parent window when the user accesses a custom menu item.

 

Parameter

Description

wParam

Specifies the control identifier in its low-order word and the PEWN_CUSTOMMENU notification code in its high-order word.

lParam

Contains the Windows/ProEssentials handle for the object

 

When processing this notification message, read ...    

 

int nM = PEnget(m_hPE, PEP_nLASTMENUINDEX);

int nSM = PEnget(m_hPE, PEP_nLASTSUBMENUINDEX);

 

to learn which custom menu was last selected.

 

Comments

.NET developers see the PeCustomMenu event.

OCX/VCL developers use the CustomMenu event.

 

See example 127 for more info.

 

See Also: CustomMenuText, AllowUserInterface, ProEssentials Messages, Common Question 38.

 

For an example: See the included VC6 Example Project, "PEVIEW.CPP" file, OnCommand handler for an example of event processing. This project will load into VC6 or Visual Studio .NET.