Article View: borland.public.cppbuilder.nativeapi
Article #7220System menu on a form with no border.
From: JBH
Date: Fri, 04 Mar 2005 17:11
Date: Fri, 04 Mar 2005 17:11
16 lines
1276 bytes
1276 bytes
I am trying to create a form with no border that can still be controlled by the user. I allow the user to move the form with this code, placed in a MouseDown event of an Image: ReleaseCapture(); SendMessage(Form1->Handle, WM_NCLBUTTONDOWN, HTCAPTION, 0); However, when I try to impliment a similar function that will generate the system menu, it does not work: ReleaseCapture(); SendMessage(Form1->Handle, WM_NCLBUTTONDOWN, HTSYSMENU, 0); Thanks. -Jon
Technical Details
Message-ID:
<422896a3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.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,e5978b762cf10a8a,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "JBH" <jhanson@ae-solutions.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: System menu on a form with no border. Date: Fri, 4 Mar 2005 11:11:00 -0600 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 12.2.62.130 Message-ID: <422896a3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1109956259 12.2.62.130 (4 Mar 2005 09:10:59 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail