Article View: borland.public.cppbuilder.nativeapi
Article #1528Displaying menu after using CreatePopupMenu()
From: Kris
Date: Fri, 27 Jul 2007 08:50
Date: Fri, 27 Jul 2007 08:50
25 lines
1661 bytes
1661 bytes
Hi, I'm attempting to create a Unicode pop-up menu but due to my lack of experience with non-VCL UI components I'm having problems with even the most basic things (note that I do not want to use a 3rd party component, but rather try it myself). I'm assuming this code creates a single menu-item in a pop-up menu. Later on, when I get things working I'll be using AppendMenuW to get Unicode support, but for now I'm concentrating on the basic stuff. HMENU MyPopUpMenu; MyPopUpMenu=CreatePopupMenu(); AppendMenu(MyPopUpMenu,MF_STRING,NULL,"Item"); However, I can't seem to figure out which function to call when I actually need to display the popup-menu I just created (and which I assume allows me to determine the coordinates of where the menu should appear). Any information you can share to get met started is much appreciated. Thanks, Kris
Technical Details
Message-ID:
<46a9b224$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,36d1a4e51ed2600d,start X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 27 Jul 2007 10:50:58 +0200 From: Kris <test@test.com> User-Agent: Thunderbird 2.0.0.5 (Windows/20070716) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Displaying menu after using CreatePopupMenu() Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 81.242.6.168 Message-ID: <46a9b224$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1185526308 81.242.6.168 (27 Jul 2007 01:51:48 -0700) Lines: 26 Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail