Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is a control ATOM the same as the control's class id?

Status
Not open for further replies.

titanandrews

Programmer
Feb 27, 2003
130
US
Hi,
In the DLGITEMTEMPLATE section of Win32 API, there is a list of common controls with a hex value and meaning.
Value Meaning
0x0080 Button
0x0081 Edit
0x0082 Static
0x0083 List box
0x0084 Scroll bar
0x0085 Combo box

When I run this piece of code:
Code:
WNDCLASSEX wcx;
ATOM atom;

wcx.cbSize = sizeof(wcx);
GetClassInfoEx(NULL, "Button", &wcx);

atom = RegisterClassEx(&wcx);

atom's value is 49175 which in hex is 0xC017. This of course is not 0x0080 as specified in the table above. Is it supposed to be the same? If not, how do I get this 0x0080 value at runtime? Ultimately, I want the hex value for a SysDateTimePick32 (Date/Time) control. But I thought it was better to try and get a common control first.

many thanks,

Barry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top