Jump to content
  • Advertisement
Sign in to follow this  
kaktusas2598

What is difference between CreateWindow() and CreateWindowEx()?

This topic is 2947 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

Advertisement
CreateWindow versus CreateWindowEx at MSDN. Learning to read documentation and conduct research is a critical component of becoming a programmer.

It is generally a safe bet that if you do not need, or understand, the purpose of the extra or different parameters provided by an "Ex" function in the Win32 API, you don't need to be calling the "Ex" function and the regular one will suffice.

Share this post


Link to post
Share on other sites
CreateWindow is older. You should use CreateWindowEx but it doesn't really matter. The main difference is you can't set a window's "extended style" with CreateWindow.

Share this post


Link to post
Share on other sites
As someone pointed out to me a while back, CreateWindow nowadays is even just a macro that maps to CreateWindowEx(0, .....), so CreateWindow as a function doesn't really even exist anymore.

Share this post


Link to post
Share on other sites
Generally google isn't the first choice for questions about Win32 API's. Go directly to MSDN. jpetrie's first link has this right at the top:

Quote:
To use extended window styles in addition to the styles supported by CreateWindow, use the CreateWindowEx function.

Share this post


Link to post
Share on other sites
Quote:
Original post by Anon Mike
Generally google isn't the first choice for questions about Win32 API's. Go directly to MSDN. jpetrie's first link has this right at the top:

Quote:
To use extended window styles in addition to the styles supported by CreateWindow, use the CreateWindowEx function.


Thanks, I already added MSDN to favorites so I shouldn't forget it :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!