Article View: borland.public.cppbuilder.nativeapi
Article #7521Re: System Menu
From: Bob Gonder
Date: Fri, 28 Jan 2005 00:18
Date: Fri, 28 Jan 2005 00:18
25 lines
1695 bytes
1695 bytes
JD wrote: > >I'm trying to catch when the window is minimized, maximized or >restored from either the system menu or by right clicking the >taskbar icon. > >I was testing for WM_SYSCOMMAND but that only catches the >border icon clicks. I've tried catching WM_COMMAND but that's >not getting sent, contrary to what I *think* the help file says >for WM_COMMAND. > >Can someone shed some light on this for me please? Have you looked at WM_SHOWWINDOW WM_QUERRYOPEN WM_GETMINMAXINFO See also "Size and Position Messages" in the Win32.hlp But, if you just want to know the status, use the "is" family: IsWindowVisible() IsZoomed() IsIconic()
Technical Details
Message-ID:
<2h0jv05tg5hduj30gtpp7vpnq9ln9dq6uc@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!colt.net!easynet-quince!easynet.net!grolier!194.74.65.66.MISMATCH!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41f97c3f@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a476d17554b7e065 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: System Menu Date: Thu, 27 Jan 2005 16:18:41 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <2h0jv05tg5hduj30gtpp7vpnq9ln9dq6uc@4ax.com> References: <41f97c3f@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69.69.90.98 X-Trace: newsgroups.borland.com 1106871516 69.69.90.98 (27 Jan 2005 16:18:36 -0800) Lines: 28 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!colt.net!easynet-quince!easynet.net!grolier!194.74.65.66.MISMATCH!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail