home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / mswindo / programm / misc / 1419 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  1.3 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!ames!pacbell.com!network.ucsd.edu!ucsbcsl!spox!mg
  2. From: mg@spox.spectron (Mark Grosen)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: Problem with dialog as main window
  5. Keywords: windows,dialog,petzold
  6. Message-ID: <109@spox.spectron>
  7. Date: 20 Aug 92 03:05:12 GMT
  8. References: <108@spox.spectron>
  9. Distribution: na
  10. Organization: Spectron MicroSystems, Inc., Santa Barbara,  CA
  11. Lines: 23
  12.  
  13. mg@spox.spectron (Mark Grosen) writes:
  14.  
  15.  
  16. >Sorry for a repeat question, but I did not see a reply to an earlier posting
  17. >about this problem.  I, too, am trying out the "hexcalc" program from the
  18. >original Petzold book.  This app just does a CreateDialog() to make its main
  19. >window.  Well, the code no longer seems to work under 3.1.  I can't find a
  20.  
  21. I will answer my own question and for those of you wondering too.
  22. The problem with hexcalc in the original Programming Windows (Ed. 1) was
  23. that the window class for the dialog did not include the extra bytes
  24. needed for dialog boxes (cbWndExtra = DLGWINDOWEXTRA).  After this simple
  25. change, all is fine.  I found the answer from the verstamp example in
  26. the SDK, which uses the same technique.
  27.  
  28. Mark
  29.  
  30.  
  31. -- 
  32. Mark D. Grosen            
  33. Spectron MicroSystems        Internet:  mg%spox@hub.ucsb.edu
  34. 5266 Hollister Avenue        (805) 967-0503 (Voice)
  35. Santa Barbara, CA  93111    (805) 683-4995 (FAX)
  36.