Archived

This topic is now archived and is closed to further replies.

WM_NCCREATE

This topic is 5513 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What does this do? All msdn says is that lparam is a pointer to createstruct, but what does it do with that pointer ----------------------------- Anything worth doing is worth doing for money

Share this post


Link to post
Share on other sites
well for some reason my program is failing there, my program will run WM_NCCREATE but never get to WM_CREATE, any ideas why?

-----------------------------
Anything worth doing is worth doing for money

Share this post


Link to post
Share on other sites
Probably you don''t return the correct value. You should pass the WM_NCCREATE message on to DefWindowProc and return the value it gives you (which will be 1). Returning 0 will signal CreateWindow that window creation has failed, causing your window not to appear.

Share this post


Link to post
Share on other sites
thank you so much! I''ve been working on this problem for so long and to think it was just a dumb return value! Agh!

-----------------------------
Anything worth doing is worth doing for money

Share this post


Link to post
Share on other sites