home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / misc / 1827 < prev    next >
Encoding:
Internet Message Format  |  1992-09-14  |  1.8 KB

  1. Path: sparky!uunet!sun-barr!olivea!spool.mu.edu!yale.edu!think.com!think.com!lincoln
  2. From: lincoln@think.com (Lincoln Marta)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Need Modeless Dialog Box Help, etc
  5. Message-ID: <9209141643.AA25444@neptune.think.com>
  6. Date: 14 Sep 92 16:43:24 GMT
  7. Sender: root@Think.COM (Operator)
  8. Organization: Thinking Machines Corporation
  9. Lines: 43
  10.  
  11. Hi all,
  12.  
  13. Problem 1:
  14. The application I am creating requires a window to 
  15. be opened an to display the current status of jobs.
  16. The specific data is passed to this window via modal
  17. dialog boxes.  I have decided to use a modeless dialog
  18. box to display the info sent by the modal dialog boxes.
  19. For some reason after creating and displaying my modeless
  20. dialog box function, my keyboard freezes, and I have to
  21. reboot with the reset switch.  I have done the following
  22. to create the modeless dialog box:
  23. 1. Use CreateDialog().
  24. 2. Revised the Message Loop as suggested by SDK to have
  25.    something of the form if hDlg==NULL | IsDialogProc...
  26.    I don't exactly remember.
  27. 3. Use Destroy Window to End the Dialog.
  28.  
  29. Everything else remains the same as a normal dialog.
  30.  
  31. Can someone point me in the right direction?  Is there
  32. something I've forgotten? Does anyone have any sample
  33. fragment of source code for a modeless Dialog Box.
  34.  
  35. Problem 2:
  36. I have used the Dialog Editor to create a .res file.
  37. In some of the dialogs I have used static text controls
  38. with the ID value of -1. However after compiling,
  39. the first word of the text witin the last Static Text Control
  40. is replaced by some other unrecognizable character.
  41. This happens to all dialogs with Static Text Controls.
  42.  
  43. Why does this happen? And what should I do to fix it.?
  44.  
  45.  
  46. Any help appreciated.
  47.  
  48. Please email reponses to : lincoln@Think.Com
  49. as I don't read this group
  50. too often.
  51.  
  52.  
  53. -Lincoln
  54.