home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4715 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.8 KB  |  50 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. From: chris@chrism.demon.co.uk (Chris Marriott)
  3. Path: sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
  4. Subject: Re: Difference between a dialog-box and an window 
  5. Distribution: world
  6. References: <1ih6vkINN1ck@coli-gate.coli.uni-sb.de>
  7. Organization: None
  8. Reply-To: chris@chrism.demon.co.uk
  9. X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
  10. Lines: 35
  11. Date: Thu, 7 Jan 1993 19:30:46 +0000
  12. Message-ID: <726435046snz@chrism.demon.co.uk>
  13. Sender: usenet@demon.co.uk
  14.  
  15. In article <1ih6vkINN1ck@coli-gate.coli.uni-sb.de> stanke@sol.cs.uni-sb.de writes:
  16.  
  17. >Hi Folks out there,
  18. >
  19. >can anyone tell me the big difference between a dialog-box (normally created
  20. >with an resource, non-modal) and a standard-window (with push-buttons, 
  21. >scroll-bars etc.)
  22.  
  23. There *is* no difference.  A dialog box is simply a window that uses a
  24. pre-defined window procedure that Microsoft wrote for you.  CreateDialog,
  25. etc, actually creates all the controls via calls to "CreateWindow", 
  26. exactly as you could do yourself.
  27.  
  28. >Is it possible to emulate with a standard-window the properties of a 
  29. >dialog-box ? 
  30. >
  31.  
  32. Certainly it is, yes.  The easy way is just to have an "IsDlgMessage" line
  33. in your main message loop.  This will give your window the standard dialog
  34. keyboard interface (TAB moving between controls, etc).
  35.  
  36. >Please give me a response or mail to
  37. >stanke@sol.cs.uni-sb.de
  38. >
  39. >Thank you
  40. >Oliver
  41. >
  42. -- 
  43. --------------------------------------------------------------------------
  44. | Chris Marriott                           | chris@chrism.demon.co.uk    |
  45. | Warrington, UK                           | BIX: cmarriott              |
  46. | (Still awaiting inspiration              | CIX: cmarriott              |
  47. |  for a witty .sig .... )                 | CompuServe: 100113,1140     |
  48. --------------------------------------------------------------------------
  49.  
  50.