<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2479.6" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=887202316-03092001><FONT face=Arial color=#0000ff size=2>Look
at ShowWindow() function... here's preview of that topic, hope it
helps...</FONT></SPAN></DIV>
<DIV><SPAN class=887202316-03092001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=887202316-03092001><FONT face=Arial color=#0000ff size=2>The
ShowWindow function sets the specified window's show state. </FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=887202316-03092001><FONT face=Arial color=#0000ff size=2>BOOL
ShowWindow(</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=887202316-03092001><FONT face=Arial color=#0000ff
size=2> HWND hWnd, // handle of
window<BR> int nCmdShow // show state of
window<BR> ); <BR> </FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=887202316-03092001><FONT face=Arial color=#0000ff
size=2>Parameters</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=887202316-03092001><FONT face=Arial color=#0000ff
size=2>hWnd</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=887202316-03092001><FONT face=Arial color=#0000ff
size=2>Identifies the window. </FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=887202316-03092001><FONT face=Arial color=#0000ff
size=2>nCmdShow</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=887202316-03092001><FONT face=Arial color=#0000ff
size=2>Specifies how the window is to be shown. This parameter is ignored the
first time an application calls ShowWindow, if the program that launched the
application provides a STARTUPINFO structure. Otherwise, the first time
ShowWindow is called, the value should be the value obtained by the WinMain
function in its nCmdShow parameter. In subsequent calls, this parameter can be
one of the following values: </FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=887202316-03092001><FONT face=Arial color=#0000ff
size=2>Value Meaning<BR>SW_HIDE Hides the window and activates another
window.<BR>SW_MAXIMIZE Maximizes the specified
window.<BR>SW_MINIMIZE Minimizes the specified window and activates the
next top-level window in the Z order.<BR>SW_RESTORE Activates and displays
the window. If the window is minimized or maximized, Windows restores it to its
original size and position. An application should specify this flag when
restoring a minimized window.<BR>SW_SHOW Activates the window and displays
it in its current size and position. <BR>SW_SHOWDEFAULT Sets the show state
based on the SW_ flag specified in the STARTUPINFO structure passed to the
CreateProcess function by the program that started the application.
<BR>SW_SHOWMAXIMIZED Activates the window and displays it as a maximized
window.<BR>SW_SHOWMINIMIZED Activates the window and displays it as a
minimized window.<BR>SW_SHOWMINNOACTIVE Displays the window as a minimized
window. The active window remains active.<BR>SW_SHOWNA Displays the window
in its current state. The active window remains active.</FONT></SPAN></DIV>
<DIV><SPAN class=887202316-03092001><FONT face=Arial color=#0000ff
size=2>.</FONT></SPAN></DIV>
<DIV><SPAN class=887202316-03092001><FONT face=Arial color=#0000ff
size=2>.</FONT></SPAN></DIV>
<DIV><SPAN class=887202316-03092001><FONT face=Arial color=#0000ff
size=2>.</FONT></SPAN></DIV>
<DIV><SPAN class=887202316-03092001><FONT face=Arial color=#0000ff
size=2>etc</FONT></SPAN></DIV>
<DIV><SPAN class=887202316-03092001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=887202316-03092001><FONT face=Arial color=#0000ff
size=2>regards, Pavel Kanzelsberger</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Lee, John
[mailto:LeeJ@logica.com] <BR><B>Sent:</B> Monday, September 03, 2001 6:05
PM<BR><B>To:</B> 'fpc-pascal@deadlock.et.tudelft.nl'<BR><B>Subject:</B> RE:
[fpc-pascal]win32 activate/close windows<BR><BR></FONT></DIV>
<DIV><SPAN class=700170016-03092001><FONT face=Arial color=#0000ff size=2>I
_did_ look at the win32 api docs... but couldn't see exaclty what I have to do
to max/min/restore/activate a named window... J</FONT></SPAN></DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Kanzelsberger Pavel
[mailto:kanzelsberger@rekt.umb.sk]<BR><B>Sent:</B> 03 September 2001
12:57<BR><B>To:</B> 'fpc-pascal@deadlock.et.tudelft.nl'<BR><B>Subject:</B> RE:
[fpc-pascal]win32 activate/close windows<BR><BR></FONT></DIV>
<P><FONT size=2>You have to send special messages to dialog main procedures
(you can also control other applications) using standard Win32 API
functions...</FONT></P>
<P><FONT size=2>Just look at Win32 API docs</FONT> </P>
<P><FONT size=2>Pavel Kanzelsberger</FONT> </P>
<P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From: Lee,
John [<A href="mailto:LeeJ@logica.com">mailto:LeeJ@logica.com</A>]
</FONT><BR><FONT size=2>Sent: Monday, September 03, 2001 1:42 PM</FONT>
<BR><FONT size=2>To: 'fpc-pascal@deadlock.et.tudelft.nl'</FONT> <BR><FONT
size=2>Subject: [fpc-pascal]win32 activate/close windows</FONT> </P><BR>
<P><FONT size=2>Does anyone have any working code or code snippets to
activate/close/restore/iconise named windows in win32? (win95) - sorry if I
asked this before- If not what is the general method/ algorithm? J</FONT></P>
<P><FONT size=2>_______________________________________________</FONT>
<BR><FONT size=2>fpc-pascal maillist -
fpc-pascal@lists.freepascal.org <A
href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal"
target=_blank>http://lists.freepascal.org/mailman/listinfo/fpc-pascal</A></FONT>
</P></BLOCKQUOTE></BODY></HTML>