flat assembler
Message board for the users of flat assembler.
Index
> Windows > Two questions about WinAPI |
Author |
|
JohnFound 20 Feb 2005, 16:11
denial wrote: or are these types really all 32-bits long? If yes, why did they use so many types? They are all 32bit dword type. Why? It is a HLL (C, C++) approach... what to say... Quote: (2) When I look at the RegisterClassEx function, the official helpfile says, that it returns an "ATOM"... What the hell is that Yes, you can. Also you simply can forget about this value, or use it in CreateWindowEx instead of string with the window class name. Actually ATOM is string value, stored somewhere inside the system, that is identified by Windows with its ATOM handle (that is integer). btw: Actually ATOM is 16bit value IIRC. Regards. |
|||
20 Feb 2005, 16:11 |
|
denial 20 Feb 2005, 16:20
Thank you very much for your help.
|
|||
20 Feb 2005, 16:20 |
|
cod3b453 21 Feb 2005, 23:56
ATOMs are, as JohnFound said, pointers to strings that are used as unique identifiers for registered classes, messages, clipboard formats, event sources, service control handlers and hotkeys.
The ATOM handle (hAtom) returned by "Register..." functions can be used to check that the object has been created successfully before attempting continue processing, this is done by checking that hAtom is non zero. HTH cod3b453 |
|||
21 Feb 2005, 23:56 |
|
denial 22 Feb 2005, 13:10
Thank you for further explanation, it helped me alot.
|
|||
22 Feb 2005, 13:10 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.