🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: EnumWindows etc.

#1805
From: Matthew
Date: Sun, 10 Jun 2007 02:53
68 lines
3310 bytes
Ed wrote:

>Ok, a structure to use in a doubly linked list:
>
>struct WindowData
>    {
>    HWND hwnd;
>    AnsiString caption;
>    WindowData *prev_item;
>    WindowData *next_item;
>    };
>

>However that means you must allocate each node (each instance of the structure), keep copies of the addresses of the first and current items and 
>adjust the links yourself.  However doing a linked list yourself is a lot of 
>coding and I don't see how this task needs an actual linked list rather than 
>a simple array.

When it comes to the C code, that's super easy for me. I have
a forest class that I've been using for years to organize
data, and all the handling routines are already in place
including virtual functions that do some simple but cool
tasks. 

And yeah - an array will do the same... I'm just used to 
using the link classes I've used for years. The forest class
I built allows each node to link to infinite nodes. The hard
part in building that was a method to collapse the forest 
without memory loss... :) [e.g. it's not doubly linked, it's
infinitely linked] - and I had to develop it for number theory
and simulated annealing multi-depth related paradigms.

I don't usually mess around with windows functions. I usually
just write code to crunch numbers = primes, pi, etc... in
an attempt to do it as fast as possible.

As for the struct:

>    HWND hwnd;
>    AnsiString caption;

That's what I needed. Thank you very much. I didn't realize
that HWND was available as an actual type. I'm assuming that's
declared in windows.h???

>  http://msdn2.microsoft.com/en-us/Library
>
>I have some programming pages posted with links to tutorials and other 
>information.  Look at them and see if they help:
>  http://www.mulroy.org/programg.htm
>
>> Once I have the state of the window, what API call do I use
>> to maximize or minimize it?
>
>Look at the function ShowWindow
>  http://msdn2.microsoft.com/en-us/library/ms633548.aspx
>
>.  Ed

The ShowWindow is the last key to what I need.

You have been a great help. I will take a look at all the
links. From here, I think I know what I need.

You are much appreciated!

Matthew.
Technical Details
Message-ID: <466b6796$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
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> <466b54ac$1@newsgroups.borland.com> <466b5915$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> <466b54ac$1@newsgroups.borland.com> <466b5915$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <466b6796$1@newsgroups.borland.com>
Date: 9 Jun 2007 19:53:10 -0700
X-Trace: newsgroups.borland.com 1181443990 207.105.83.66 (9 Jun 2007 19:53:10 -0700)
Lines: 69
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail