🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Dialog Box Question

#2512
From: mikem
Date: Fri, 05 Apr 1991 01:32
16 lines
1460 bytes
In article <1991Apr3.215150.3623@terminator.cc.umich.edu> jwh@bodwin.ifs.umich.edu (Jim Howe) writes:
>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:
>
Usually, your dialog window proc is where you control the windows in
a dialog box. the WM_INITDLG message is where you need to set the
states of your control windows. Try just disabling the controls 
(as opposed to hiding them) with WinEnableWindow(hwnd, FALSE). See
if that gets you anywhere...		

Michael R. MacFaden    IBM Palo Alto     Marketing Systems
mikem@ibmpa.awdpa.ibm.com, macfaden@paloic1.vnet.ibm.com 
disclaimer:  what I write above is not necessarily my employer's opinion 
Technical Details
Message-ID: <1991Apr5.013212.29905@ibmpa.awdpa.ibm.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!uunet!panews.awdpa.ibm.com!ibmpa.awdpa.ibm.com!mikem
References: <1991Apr3.215150.3623@terminator.cc.umich.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!uunet!panews.awdpa.ibm.com!ibmpa.awdpa.ibm.com!mikem
From: mikem@ibmpa.awdpa.ibm.com
Newsgroups: comp.os.os2.programmer
Subject: Re: Dialog Box Question
Message-ID: <1991Apr5.013212.29905@ibmpa.awdpa.ibm.com>
Date: 5 Apr 91 01:32:12 GMT
References: <1991Apr3.215150.3623@terminator.cc.umich.edu>
Sender: news@ibmpa.awdpa.ibm.com (news id)
Reply-To: mikem@ibmpa.awdpa.ibm.com (Michael MacFaden)
Distribution: na
Organization: IBM M&S Development, Palo Alto
Lines: 16