Hi all.

Did someone know, is the atoms for standard predefined windows classes are equal on every Win32 version?

If you don't know this, please start attached program on your machine. It will show GetClassLong, GCW_ATOM for standard edit control.
Please, post here the number it display and version of windows you run it. The source of the program is applyed too.

On my Win95osr2 the Atom for EDIT control is $C032

Thank you.
Posted on 2003-10-06 00:21:16 by JohnFound
Sorry, forget the attachement:
Posted on 2003-10-06 00:22:34 by JohnFound
$C018


Win2k Server SP4, and NT4.0 SP6
Posted on 2003-10-06 02:58:27 by Azrim

$C018




mine too.

Winnt 4.0 Sp6a
Posted on 2003-10-06 04:02:15 by Ranma_at
again $C018 on WinXP sp1
Posted on 2003-10-06 05:33:11 by matix
Hm, interesting. :)

Someone with Win98 and WinME?
Posted on 2003-10-06 05:48:09 by JohnFound
I found, computer with Win ME: the atom is $C032.

It seems, that all NT clones, have $C018 and all 9x clones have $C032 for EDIT control atom... :confused:
Posted on 2003-10-06 06:23:25 by JohnFound
My understanding was that the atom for a predefined window would be the same on every version of Windows. Maybe they are different on Nt and 9x because the edit controls are slightly different internally (maybe something to do with unicode)?
Posted on 2003-10-06 21:56:30 by sluggy
I assume the unchanging atom numbers are for "quasi-unnamed" classes, such as the dialog box and menu classes.

If a readable name is provided for a window class, there is no need for an unchanging atom number between OS versions.
Posted on 2003-10-07 20:15:31 by tenkey

If a readable name is provided for a window class, there is no need for an unchanging atom number between OS versions.


IMHO, in assembler is more comfortable to work with numbers instead of strings.
Posted on 2003-10-08 04:33:55 by JohnFound
Ah, but Windows was not created to support assembly language programming.
Posted on 2003-10-08 15:43:12 by tenkey