HWND is NULL but GetLastError returns 0x00

div0 div0 at users.sourceforge.net
Fri Oct 16 15:59:07 PDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Zarathustra wrote:

> I have the problem with the following code in D2:
> CreateWindowEx returns NULL but I haven't got idea why?
>

<snip>

That's because your are not properly processing all of the messages that
are involved in window creation.

See:

http://msdn.microsoft.com/en-us/library/ms632635(VS.85).aspx

or better yet, have a look at my port of atlwin.h:

http://www.sstk.co.uk/atlWinD.php

all of this tedious shit has been done before.

- --
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFK2Pq7T9LetA9XoXwRAqHlAKDPIZwXCWSvjNNviUX4SEguGFA+awCgoV7j
VHP6w/x+jpQ42lOhyYxN0/o=
=xX0G
-----END PGP SIGNATURE-----


More information about the Digitalmars-d-learn mailing list