🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2574

Re: Difference between a dialog-box and an window

#2574
From: Chris Marriott
Date: Thu, 07 Jan 1993 19:30
35 lines
1914 bytes
In article <1ih6vkINN1ck@coli-gate.coli.uni-sb.de> stanke@sol.cs.uni-sb.de writes:

>Hi Folks out there,
>
>can anyone tell me the big difference between a dialog-box (normally created
>with an resource, non-modal) and a standard-window (with push-buttons, 
>scroll-bars etc.)

There *is* no difference.  A dialog box is simply a window that uses a
pre-defined window procedure that Microsoft wrote for you.  CreateDialog,
etc, actually creates all the controls via calls to "CreateWindow", 
exactly as you could do yourself.

>Is it possible to emulate with a standard-window the properties of a 
>dialog-box ? 
>

Certainly it is, yes.  The easy way is just to have an "IsDlgMessage" line
in your main message loop.  This will give your window the standard dialog
keyboard interface (TAB moving between controls, etc).

>Please give me a response or mail to
>stanke@sol.cs.uni-sb.de
>
>Thank you
>Oliver
>
-- 
--------------------------------------------------------------------------
| Chris Marriott                           | chris@chrism.demon.co.uk    |
| Warrington, UK                           | BIX: cmarriott              |
| (Still awaiting inspiration              | CIX: cmarriott              |
|  for a witty .sig .... )                 | CompuServe: 100113,1140     |
--------------------------------------------------------------------------
 
Technical Details
Message-ID: <726435046snz@chrism.demon.co.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
References: <1ih6vkINN1ck@coli-gate.coli.uni-sb.de>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
Subject: Re: Difference between a dialog-box and an window 
Distribution: world
References: <1ih6vkINN1ck@coli-gate.coli.uni-sb.de>
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Lines: 35
Date: Thu, 7 Jan 1993 19:30:46 +0000
Message-ID: <726435046snz@chrism.demon.co.uk>
Sender: usenet@demon.co.uk