Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Getting the Handle of a PopMenu

2 posts in Objects Last posting was on 2003-10-06 15:21:16.0Z
OAQL Posted on 2003-10-06 02:58:53.0Z
From: "OAQL" <>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Getting the Handle of a PopMenu
Lines: 7
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <3f80db2d@forums-2-dub>
X-Original-Trace: 5 Oct 2003 20:02:05 -0700,
X-Original-Trace: 5 Oct 2003 19:53:33 -0700,
Date: 5 Oct 2003 19:58:53 -0700
X-Trace: forums-1-dub 1065409133 (5 Oct 2003 19:58:53 -0700)
X-Original-Trace: 5 Oct 2003 19:58:53 -0700,
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7617
Article PK: 734899

It is possible to get the handle of a PopMenu?
I'm trying to add a bitmap to a menu item, but I need the handle of the


Philip Salgannik Posted on 2003-10-06 15:21:16.0Z
From: Philip Salgannik
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Getting the Handle of a PopMenu
X-Mailer: WebNews to Mail Gateway v1.1s
Message-ID: <>
References: <3f80db2d@forums-2-dub>
Date: 6 Oct 2003 08:21:16 -0700
X-Trace: forums-1-dub 1065453676 (6 Oct 2003 08:21:16 -0700)
X-Original-Trace: 6 Oct 2003 08:21:16 -0700,
Lines: 25
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7618
Article PK: 734900

Unfortunately, if you want to use a popup menu that you
CREATE in the script versus the one that is already
instantiated on the parent window (sheet or frame), then you
don't have much to work with and the only way to have
bitmaps on it is to use a DLL, like the one here:

If you can live with showing a submenu of a menu which is
already drawn by a window (with bitmaps, etc.) then you can
use these APIs:
function int TrackPopupMenuEx ( ulong menuhandle, uint
flags, int xx, int yy, ulong windowhandle, long lptpm )
library "user32.dll" (instead of PB's popmenu function )
function ulong GetSubMenu ( ulong menuhandle, int itempos )
Library "user32.dll"

> It is possible to get the handle of a PopMenu?
> I'm trying to add a bitmap to a menu item, but I need the
> handle of the PopMenu...