Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting CMenu* from HMENU

Status
Not open for further replies.

Skute

Programmer
Jul 21, 2003
272
GB
Hi,

is it possible to get a pointer to a menu class just from the current class's m_hMenu ?

In a similar manner to GetMenu() but by specifying a HMENU.

Skute

"There are 10 types of people in this World, those that understand binary, and those that don't!"
 
CMenu x = *CMenu::FromHandle(hMenu);

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
thanks!

Skute

"There are 10 types of people in this World, those that understand binary, and those that don't!"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top