home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4749 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.1 KB

  1. Path: sparky!uunet!gatech!concert!bdrc!jcl
  2. From: jcl@bdrc.bd.com (John C. Lusth)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: initalizing dialog boxes
  5. Message-ID: <1877@bdrc.bdrc.bd.com>
  6. Date: 8 Jan 93 16:44:47 GMT
  7. Sender: news@bdrc.bdrc.bd.com
  8. Lines: 21
  9. Nntp-Posting-Host: otis.bdrc.bd.com
  10.  
  11. Hi again.  Thanks to the those who pointed out the obvious in
  12. that I need to call IsDlgMessage for the tab keys to switch input
  13. focus.
  14.  
  15. Now another question.  When do I initialize my child windows when
  16. I am using a dialog box as my main window (ala HEXCALC in Petzold)?
  17. I never receive a WM_INITDIALOG message; when I receive the
  18. WM_CREATE message, my child windows are not yet created (i.e.
  19. GetDlgItem returns 0).
  20.  
  21. What I ended up doing is the first time I receive a message from
  22. the child window, I initialize the child window.  This is not a very
  23. appealing method.
  24.  
  25. A related question is I can't return TRUE when processing a WM_INITDIALOG
  26. message since I never receive it.  Therefore none of my child windows
  27. gets the initial input focus.  What's up with that?
  28.  
  29. john
  30. -- 
  31. John C. Lusth, Becton Dickinson Research Center, RTP, NC, USA  jcl@bdrc.bd.com
  32.