1. Vel and hidden windows
------=_NextPart_000_0037_01BF0A11.42B2D040
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi Vel users,
I have a question. I need to subclass a window in VEL program (yes, I =
have a subclassing library wrote) to pick up custom events I need to =
program.
I would like to make a hidden window in an include file. Can I do this =
without having the id of the main form and can I use the ShowWindow =
command to hide the window in the include file before the main program =
opens (This is something like the hidden window in all VB programs)
Thanks!
Greg Harris
HHS
------=_NextPart_000_0037_01BF0A11.42B2D040
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3401" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Hi Vel users,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>I have a question. I need to subclass a window in =
VEL program=20
(yes, I have a subclassing library wrote) to pick up custom events =
I need=20
to program.</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>I would like to make a hidden window in an =
include file.=20
Can I do this without having the id of the main form and can I use the=20
ShowWindow command to hide the window in the include file before the =
main=20
program opens (This is something like the hidden window in all VB=20
programs)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>Thanks!</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>Greg Harris</FONT></DIV>
------=_NextPart_000_0037_01BF0A11.42B2D040--
2. Re: Vel and hidden windows
Hi Greg,
Greg Harris wrote:
>I have a question. I need to subclass a window in VEL program (yes, I have
a subclassing library wrote) to pick up custom events I need to program.
>
>I would like to make a hidden window in an include file. Can I do this
without having the id of the main form and can I use the ShowWindow command
to hide the window in the include file before the main program opens (This
is something like the hidden window in all VB programs)
If I understand you correctly... you want to define (ie. CreateControl) a
secondary window (form) in an include file and not have it displayed until
you're ready to? First, forms are not owned by any other control, so you
don't need to know the id of the main form to create a secondary form.
Second, forms are not shown until you execute the ShowForm command,
however, you shouldn't try to show the secondary form before the main form
(look at the example in Demo4.exw). So... if my suppositions are correct,
yes, you CAN do what you suggest.
Gary.
3. Re: Vel and hidden windows
On Wed, 29 Sep 1999 00:26:23 -0400, Greg Harris <blackdog at CDC.NET> wrote:
>Hi Vel users,
>
>I have a question. I need to subclass a window in VEL program (yes, I have
a subclassing library wrote) to pick up custom events I need to program.
>
>I would like to make a hidden window in an include file. Can I do this
without having the id of the main form and can I use the ShowWindow command
to hide the window in the include file before the main program opens (This
is something like the hidden window in all VB programs)
>
>Thanks!
>
>Greg Harris
>HHS
>
Greg
You may want to use GetWindowLong and SetWindowLong to subclass the main
form
Bernie