Article View: borland.public.cppbuilder.nativeapi
Article #5903Re: WindowState
From: JD
Date: Fri, 24 Jun 2005 11:14
Date: Fri, 24 Jun 2005 11:14
22 lines
1703 bytes
1703 bytes
John <john@nospam> wrote: >An other way to get a window state is with GetWindowPlacement() >but a didn't tested it with or without the style you refer to. No joy. I got the same results. This seems to be by design for Windows because all of the API's I've tested return the same results. Even more perplexing to me is that minimizing the window seems to be handled differently when compared to maximizing or restoring. If I use SetWindowsHookEx to hook into the main thread, I can detect SC_RESTORE and SC_MAXIMIZE but not SC_MINIMIZE ????? In case you're wondering, I need to be able to determine the the correct window state from within a component and since Application->MainForm->WindowState is updated directly from what window's 'thinks' it is, my only choice was to hook the main window and monitor changes. ~ JD
Technical Details
Message-ID:
<42bbeb1f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42ace21e$1@newsgroups.borland.com> <opsso0lgqutqe2av@news.noeatingpuzzlepieces>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4e7735b974fe9667 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "JD" <nospam@nospam.com> Sender: "JD" <nospam@nospam.com> Reply-To: "JD" <nospam@nospam.com> Subject: Re: WindowState Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 205.188.116.135 X-Forwarded-For: 172.136.95.183 References: <42ace21e$1@newsgroups.borland.com> <opsso0lgqutqe2av@news.noeatingpuzzlepieces> NNTP-Posting-Host: 207.105.83.66 Message-ID: <42bbeb1f$1@newsgroups.borland.com> Date: 24 Jun 2005 04:14:39 -0700 X-Trace: newsgroups.borland.com 1119611679 207.105.83.66 (24 Jun 2005 04:14:39 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail