Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bringing a window up initially hidden - Using SDK

0 views
Skip to first unread message

Sheri Rector

unread,
Feb 25, 1998, 3:00:00 AM2/25/98
to

Hi -
I need a way to bring a window up initially hidden. I have looked at the
WS_* and the WS_EX_* flags and the ability is not there. I did find an
article in the VC++ 5.0 on-line help about doing just this with MFC and MDI
Child windows that I might be able to adapt, but I was just wondering if
anyone out there had some experience with this. Thanks in advance.

--
----------------------------------------------------------------------------
--------------------------
Sheri Steeves | Applying computer technology is a matter of finding
Software Developer | the right wrench to pound in the correct screw.
TYDAC Research Inc.
-------------------------------------------------------------------
2 Gurdwara, Suite 210 | Phone : 1-613-226-5525
Ottawa, Ontario K2E 1A2
-------------------------------------------------------------------
http://www.tydac.com | Fax : 1-613-226-3819
----------------------------------------------------------------------------
---------------------------
******************* Part of the PCI Geomatics Group
******************
----------------------------------------------------------------------------
---------------------------


Mike Smith

unread,
Feb 25, 1998, 3:00:00 AM2/25/98
to

Check out the available parameters for ShowWindow().

--Mike Smith

Sheri Rector <sre...@tydac.com> wrote in article
<01bd41f3$96350f40$5b4470cf@srector>...

Dave Postill

unread,
Feb 25, 1998, 3:00:00 AM2/25/98
to

[posted and emailed]

Sheri Rector wrote in message <01bd41f3$96350f40$5b4470cf@srector>...


|Hi -
| I need a way to bring a window up initially hidden.

ShowWindow( hWnd, SW_HIDE );

Regards,

davep

--
Dave Postill Email: personal <da...@visix.com>
European Support Manager galaxy support <supp...@visix.com>
vibe support <vibe-s...@visix.com>
Visix Software (UK) Ltd Direct: +44 (0) 171 753 2843
1 Northumberland Avenue Switchboard: +44 (0) 171 872 5825
Trafalgar Square Fax: +44 (0) 171 753 2720
London, WC2N 5BW Web: http://www.visix.com

Patrick Philippot

unread,
Feb 25, 1998, 3:00:00 AM2/25/98
to

You just have to use ShowWindow with the correct parameter.

--

Patrick Philippot

-pp (MainSoft sarl)
------------------------------------

patrick....@iname.com
Compuserve: mainsoft / main...@compuserve.com
http://ourworld.compuserve.com/homepages/mainsoft
tel/fax: +33 (0)1 69 40 94 85

sc...@softbase.com

unread,
Feb 25, 1998, 3:00:00 AM2/25/98
to

Sheri Rector (sre...@tydac.com) wrote:
>I need a way to bring a window up initially hidden. I have looked at the
>WS_* and the WS_EX_* flags and the ability is not there.

Unless I'm missing out on something obvious, why can't you
use SW_HIDE instead of SW_NORMAL in the call to ShowWindow()?
Window styles don't handle hiding/showing windows. Maybe that
was a red herring.

Scott
--
Look at Softbase Systems' client/server tools, www.softbase.com
Check out the Essential 97 package for Windows 95 www.skwc.com/essent
All my other cool web pages are available from that site too!
My demo tape, artwork, poetry, The Windows 95 Book FAQ, and more.

Jerry Coffin

unread,
Feb 26, 1998, 3:00:00 AM2/26/98
to

In article <01bd41f3$96350f40$5b4470cf@srector>, sre...@tydac.com
says...
> Hi -
> I need a way to bring a window up initially hidden. I have looked at the
> WS_* and the WS_EX_* flags and the ability is not there.

Yes it is -- there's a WS_VISIBLE flag, and if it's not set, the
window is invisible. If you're creating a modal dialog, Windows will
normally force the WS_VISIBLE bit on, even if you don't set it.
However, with normal windows if WS_VISIBLE isn't set, the window is
invisible.

--
Later,
Jerry.

The Universe is a figment of its own imagination.

Sten Westerback

unread,
Mar 4, 1998, 3:00:00 AM3/4/98
to

In article <6d1btu$dk5$1...@shelby.visix.com>, "Dave Postill" <da...@visix.com> wrote:
>[posted and emailed]
>
>Sheri Rector wrote in message <01bd41f3$96350f40$5b4470cf@srector>...
>|Hi -
>| I need a way to bring a window up initially hidden.
>
>ShowWindow( hWnd, SW_HIDE );

Wouldn't it be better to either
- no call ShowWindow(hWnd, SW_SHOW)
- remove the WS_VISIBLE flag

- Sten

0 new messages