home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!olivea!spool.mu.edu!yale.edu!think.com!think.com!lincoln
- From: lincoln@think.com (Lincoln Marta)
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: Need Modeless Dialog Box Help, etc
- Message-ID: <9209141643.AA25444@neptune.think.com>
- Date: 14 Sep 92 16:43:24 GMT
- Sender: root@Think.COM (Operator)
- Organization: Thinking Machines Corporation
- Lines: 43
-
- Hi all,
-
- Problem 1:
- The application I am creating requires a window to
- be opened an to display the current status of jobs.
- The specific data is passed to this window via modal
- dialog boxes. I have decided to use a modeless dialog
- box to display the info sent by the modal dialog boxes.
- For some reason after creating and displaying my modeless
- dialog box function, my keyboard freezes, and I have to
- reboot with the reset switch. I have done the following
- to create the modeless dialog box:
- 1. Use CreateDialog().
- 2. Revised the Message Loop as suggested by SDK to have
- something of the form if hDlg==NULL | IsDialogProc...
- I don't exactly remember.
- 3. Use Destroy Window to End the Dialog.
-
- Everything else remains the same as a normal dialog.
-
- Can someone point me in the right direction? Is there
- something I've forgotten? Does anyone have any sample
- fragment of source code for a modeless Dialog Box.
-
- Problem 2:
- I have used the Dialog Editor to create a .res file.
- In some of the dialogs I have used static text controls
- with the ID value of -1. However after compiling,
- the first word of the text witin the last Static Text Control
- is replaced by some other unrecognizable character.
- This happens to all dialogs with Static Text Controls.
-
- Why does this happen? And what should I do to fix it.?
-
-
- Any help appreciated.
-
- Please email reponses to : lincoln@Think.Com
- as I don't read this group
- too often.
-
-
- -Lincoln
-