The evolution of dialog templates – Summary

Date:June 24, 2004 / year-entry #250
Tags:history
Orig Link:https://blogs.msdn.microsoft.com/oldnewthing/20040624-00/?p=38733
Comments:    4
Summary:As promised, here's the tabular version of the evolution of dialog templates. It doesn't contain any new information, but it may give you a little glimpse into how things evolved to see the small changes highlighted against each other. 16-bit classic 32-bit classic 16-bit extended 32-bit extended Header style8-bit item countcoordinates extended style, style16-bit item...

As promised, here's the tabular version of the evolution of dialog templates. It doesn't contain any new information, but it may give you a little glimpse into how things evolved to see the small changes highlighted against each other.

16-bit classic 32-bit classic
16-bit extended 32-bit extended
Header style
8-bit item count
coordinates
extended style, style
16-bit item count
coordinates
help ID, extended style, style
8-bit item count
coordinates
help ID, extended style, style
16-bit item count
coordinates
Menu ASCIIZ or ordinal UNICODEZ or ordinal
ASCIIZ or ordinal UNICODEZ or ordinal
Class ASCIIZ or ordinal UNICODEZ or ordinal
ASCIIZ or ordinal UNICODEZ or ordinal
Caption ASCIIZ UNICODEZ
ASCIIZ UNICODEZ
Font
(if DS_SETFONT)
size
ASCIIZ font name
size
UNICODEZ font name
size, weight, italic, charset
ASCIIZ font name
size, weight, italic, charset
UNICODEZ font name
Item template alignment BYTE DWORD
BYTE DWORD
Item templates size, position
16-bit ID
style
class, ASCIIZ text/ordinal
8-bit extra data
size, position
16-bit ID
extended style, style
class, UNICODEZ text/ordinal
16-bit extra data
size, position
32-bit ID
help ID, extended style, style
class, ASCIIZ text/ordinal
16-bit extra data
size, position
32-bit ID
help ID, extended style, style
class, UNICODEZ text/ordinal
16-bit extra data

Comments (4)
  1. rr says:

    Sorry to veer off topic (although it is related to dialogs) – perhaps it can be a future topic.

    Why do windows use WM_CREATE and dialogs use WM_INITDIALOG?

    Why don’t they both use WM_CREATE? Is there some special or subtle difference between the two? Or are they just two independent messages that really could have been just one?

  2. Raymond Chen says:

    Think about the things you typically do during dialog box initialization – think about when WM_CREATE is sent – do you see the disconnect? If you don’t, you can wait until I discuss dialog boxes in greater detail later this year.

  3. JuanC says:

    Is there a way to get CW_USEDEFAULT behavior when using a Dialog Template?

    I tried 0x8000 in X and Y as well as doing SetWindowPos in WM_INITDIALOG without success.

    Regards,

    JuanC

  4. Raymond Chen says:

    No there isn’t. You’ll see why when I go into dialog boxes in greater detail later.

Comments are closed.


*DISCLAIMER: I DO NOT OWN THIS CONTENT. If you are the owner and would like it removed, please contact me. The content herein is an archived reproduction of entries from Raymond Chen's "Old New Thing" Blog (most recent link is here). It may have slight formatting modifications for consistency and to improve readability.

WHY DID I DUPLICATE THIS CONTENT HERE? Let me first say this site has never had anything to sell and has never shown ads of any kind. I have nothing monetarily to gain by duplicating content here. Because I had made my own local copy of this content throughout the years, for ease of using tools like grep, I decided to put it online after I discovered some of the original content previously and publicly available, had disappeared approximately early to mid 2019. At the same time, I present the content in an easily accessible theme-agnostic way.

The information provided by Raymond's blog is, for all practical purposes, more authoritative on Windows Development than Microsoft's own MSDN documentation and should be considered supplemental reading to that documentation. The wealth of missing details provided by this blog that Microsoft could not or did not document about Windows over the years is vital enough, many would agree an online "backup" of these details is a necessary endeavor. Specifics include:

<-- Back to Old New Thing Archive Index