Sign in to follow this  
kaktusas2598

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

Recommended Posts

jpetrie    13159
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
jwezorek    2663
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
Rattrap    3385
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
Anon Mike    1098
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
kaktusas2598    953
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this