🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #2504

Dialog Box Question

#2504
From: Jim Howe
Date: Wed, 03 Apr 1991 21:51
24 lines
1738 bytes
I am working on a program that requires the use of two very similar
versions of a dialog.  Sometimes I need to display the dialog with
all controls visible, othertimes I need to hide a couple of the
controls.  I am having trouble getting this to work, however.  Here's
what I do:

I load the dialog from a DLL file. (The dialog is initially not visible)
If I need to hide some controls I get the window handle for each control
  that I want to hide and call WinShowWindow with a value of false.
I then call WinShowWindow with the handle of the dialog window to
  make the dialog visible.

When I do this, the dialog and all controls are visible.  It appears
that the WinShowWindow command for the dialog window uses the visibility
settings found in the dialog definition and ignores the settings that
I set with the previous WinShowWindow commands.  Is there an easy way
for me to accomplish what I want to do?  In other words, is there a 
way to change the visibility settings for individual controls in a 
dialog after it has been loaded but before the dialog has become visible?
Any help is appreciated.

James W. Howe			   internet: jwh@citi.umich.edu
University of Michigan             uucp:     uunet!mailrus!citi.umich.edu!jwh
Ann Arbor, MI   48103-4943         
Technical Details
Message-ID: <1991Apr3.215150.3623@terminator.cc.umich.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!umich!terminator!usenet

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!umich!terminator!usenet
From: jwh@bodwin.ifs.umich.edu (Jim Howe)
Newsgroups: comp.os.os2.programmer
Subject: Dialog Box Question
Message-ID: <1991Apr3.215150.3623@terminator.cc.umich.edu>
Date: 3 Apr 91 21:51:50 GMT
Sender: usenet@terminator.cc.umich.edu (usenet news)
Distribution: na
Organization: University of Michigan, IFS Project
Lines: 24