🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #17457

Re: System Menu

#17457
From: RaynorPao
Date: Tue, 25 Mar 2003 05:01
28 lines
1799 bytes
Hi Remy:

The System Menu can be display on my Form.
But when I click "Exit"....It will not close my Form(Exit Application).
My code is as below:

   HMENU hMenu=GetSystemMenu(Form1->Handle, FALSE);
   TrackPopupMenu(hMenu, TPM_LEFTALIGN | TPM_RETURNCMD,
      Form1->Left+10, Form1->Top+10, 0, Form1->Handle, NULL);

How can I solve this problem?

Thanks.
RaynorPao.

"Remy Lebeau (TeamB)" <gambit47@yahoo.com> ���g��l��
news:3e7fce0e$1@newsgroups.borland.com...
> Perhaps have a look at GetSystemMenu() and TrackPopupMenu().
>
>
> Gambit
>
> "RaynorPao" <RaynorPao.nospam@nospam.pchome.com.tw> wrote in message
> news:3e7fc5d6@newsgroups.borland.com...
>
> > I just want to show the system menu like a PopupMenu on Form.
>
>
Technical Details
Message-ID: <3e7fdee7@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e7fbdfa@newsgroups.borland.com> <3e7fc449@newsgroups.borland.com> <3e7fc5d6@newsgroups.borland.com> <3e7fce0e$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,ef942edb0660a72e
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-24 20:48:34 PST
From: "RaynorPao" <RaynorPao.nospam@nospam.pchome.com.tw>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e7fbdfa@newsgroups.borland.com> <3e7fc449@newsgroups.borland.com> <3e7fc5d6@newsgroups.borland.com> <3e7fce0e$1@newsgroups.borland.com>
Subject: Re: System Menu
Date: Tue, 25 Mar 2003 13:01:58 +0800
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
NNTP-Posting-Host: 203.73.124.171
Message-ID: <3e7fdee7@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1048567527 203.73.124.171 (24 Mar 2003 20:45:27 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail