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