🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2606

initalizing dialog boxes

#2606
From: John C. Lusth
Date: Fri, 08 Jan 1993 16:44
21 lines
1188 bytes
Hi again.  Thanks to the those who pointed out the obvious in
that I need to call IsDlgMessage for the tab keys to switch input
focus.

Now another question.  When do I initialize my child windows when
I am using a dialog box as my main window (ala HEXCALC in Petzold)?
I never receive a WM_INITDIALOG message; when I receive the
WM_CREATE message, my child windows are not yet created (i.e.
GetDlgItem returns 0).

What I ended up doing is the first time I receive a message from
the child window, I initialize the child window.  This is not a very
appealing method.

A related question is I can't return TRUE when processing a WM_INITDIALOG
message since I never receive it.  Therefore none of my child windows
gets the initial input focus.  What's up with that?

john
-- 
John C. Lusth, Becton Dickinson Research Center, RTP, NC, USA  jcl@bdrc.bd.com
Technical Details
Message-ID: <1877@bdrc.bdrc.bd.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!concert!bdrc!jcl

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!concert!bdrc!jcl
From: jcl@bdrc.bd.com (John C. Lusth)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: initalizing dialog boxes
Message-ID: <1877@bdrc.bdrc.bd.com>
Date: 8 Jan 93 16:44:47 GMT
Sender: news@bdrc.bdrc.bd.com
Lines: 21
Nntp-Posting-Host: otis.bdrc.bd.com