Article View: borland.public.cppbuilder.nativeapi
Article #1802Re: EnumWindows etc.
From: Matthew
Date: Sun, 10 Jun 2007 01:32
Date: Sun, 10 Jun 2007 01:32
40 lines
2493 bytes
2493 bytes
Ed wrote: >I do not know why you need the process id or class name for the window. As far as I know - I don't need the ID or class name. The code I am using is example code from C++ BCB 6 - and I'm wading through in an attempt to understand the necessary API calls to do what I getting at. >keep an internal list of HWND and window caption. You can save >those two items into a structure that you define and use one I would perfer to have a linked list (or the kind) of HWND. Can you please show me how to declare that struct? e.g. - does the struct need pointer types? And if so, what type are they? >When the user double clicks on a caption in the list box you can then go >through your internal list and find the associated window handle, the HWND. >You can then test its state with IsIconic and IsZoomed and decide what to do >with it. Yeah - Bob said that IsIconic and IsZoomed are two calls I have to look at. I have Win32 Programming reference by: Rector / Newcomer (Addison Wesley publication)... But the references are cryptic and contain little examples. I'm assuming that if I have a list of HWND - that one of the structs components will have a pointer reference to the window I wish to affect with IsIconic, and IsZoomed. Once I have the state of the window, what API call do I use to maximize or minimize it? Again - thanks for keeping this thread alive with answers. Matthew.
Technical Details
Message-ID:
<466b54ac$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4668d902$1@newsgroups.borland.com> <l2ri63pmm23tsci1u4subhitr6cchmm147@4ax.com> <4669fbaf$1@newsgroups.borland.com> <466aacf2$1@newsgroups.borland.com> <466aefff$1@newsgroups.borland.com> <466b4b25$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,859e738ad5fa0eae X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Matthew" <atomkey@yahoo.com> Sender: "Matthew" <atomkey@yahoo.com> Reply-To: "Matthew" <atomkey@yahoo.com> Subject: Re: EnumWindows etc. Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 74.196.1.72 References: <4668d902$1@newsgroups.borland.com> <l2ri63pmm23tsci1u4subhitr6cchmm147@4ax.com> <4669fbaf$1@newsgroups.borland.com> <466aacf2$1@newsgroups.borland.com> <466aefff$1@newsgroups.borland.com> <466b4b25$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <466b54ac$1@newsgroups.borland.com> Date: 9 Jun 2007 18:32:28 -0700 X-Trace: newsgroups.borland.com 1181439148 207.105.83.66 (9 Jun 2007 18:32:28 -0700) Lines: 40 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail