How to get a menu handle if the menu is created by SalTrackPopupMenu() ?

forum.advanced.programming (1998-2005)
aleshk
Ukraine
Posts: 81
Joined: 05 Dec 2017, 07:40
Location: Kiev, Ukraine

How to get a menu handle if the menu is created by SalTrackPopupMenu() ?

Post by aleshk » 13 Dec 2004, 14:08

 Posted by:  Aleksandr Shkulepov 

Hello!

Is there a way to get a menu handle for a menu which was created by
SalTrackPopupMenu()?
We are using CTD 2.1.

Thanks,
Aleksandr Shkulepov
Galilei Software GmbH

Pawel Streich

Re: How to get a menu handle if the menu is created by SalTrackPopupMenu() ?

Post by Pawel Streich » 13 Dec 2004, 16:03

 Posted by:  Pawel Streich 

Hi,

Code: Select all

// declaration
Number: WM_INITMENU   = 0x0116

On WM_INITMENU
    Call VisMenuDelete( hWndForm, wParam, 9 )

// wParam = handle to this menu
// 9 number in menu (begin from 0 )
Regards,

Pawel

Return to “advanced.programming”

Who is online

Users browsing this forum: [Ccbot], [Google] and 0 guests