Re: EuWiki needs contributions

new topic     » goto parent     » topic index » view thread      » older message » newer message

George Walters wrote:
> 
> I didn't know what EuWiki was so this prompted me to take a look. Some
> interesting
> reading on win32. I read that win32 controls should be atoms and I have been
> them all as integers in my programs. Shocking if I have made a mistake. Could
> someone more knowledgable than me expand on this?? Do I need to change all my
> code to make them atoms?


You don't need to do that:
win32lib identifiers (control ids) are integers.
Windows handles are atoms that are not necessarily integers. 

So, if you don't deal with handles, but only with ids, it is expected that 
you use integers to hold these values.
If you use Windows handles in your program, then these have to be held 
inside atoms. Otherwise, type check errors may occur.

By the way, Windows has control ids which are often the same as the 
library's, but are limited to 65535. Hence, there may be issues with Windows
if you create more than 65535 controls in your app. This is assumed to be a 
rare scenario, and the library can hardly help, as this is a Windows 
limitation.

CChris

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu