CreateWindow()和CreateWindowEx之间的区别? [英] Differences Between CreateWindow() and CreateWindowEx?

查看:555
本文介绍了CreateWindow()和CreateWindowEx之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是使用Visual C ++进行Windows编程的新手,所以我对许多Windows编程语法和功能感到困惑.例如,CreateWindow()和CreateWindowEx().

它们有什么区别,后缀-Ex代表什么?

非常感谢您

I''m new to Windows programming with Visual C++, so I''d confused with many of Windows programming syntax and functions. For example, CreateWindow() and CreateWindowEx().

What is the differences of them, and what is the suffix -Ex stands for?

Thank you very much

推荐答案

这是可以在MSDN上找到的WinApi调用. Ex代表扩展,如果您查看链接,您会看到Ex版本具有Windows 95/98时尚不可用的更多选项.顺便说一下,还有更多方法的api扩展.

http://msdn.microsoft.com/en-us/library/ms632679%28v = vs.85%29.aspx [ ^ ]

http://msdn.microsoft.com/en-us/library/ms632680%28v = vs.85%29.aspx [ ^ ]

祝你好运!
That are WinApi calls that can be found on MSDN. The Ex stands for extension and if you have a look at the link you''ll see that the Ex version has some more options that weren''t available at the time of windows 95/98. There are many more api extensions of methods by the way.

http://msdn.microsoft.com/en-us/library/ms632679%28v=vs.85%29.aspx[^]

http://msdn.microsoft.com/en-us/library/ms632680%28v=vs.85%29.aspx[^]

Good luck!


来自文档: CreateWindowEx [ ^ ]

From the documentation: CreateWindowEx[^]


创建具有扩展窗口样式的重叠窗口,弹出窗口或子窗口;否则,此函数与CreateWindow函数相同.有关创建窗口的更多信息以及CreateWindowEx的其他参数的完整说明,请参见CreateWindow.

Creates an overlapped, pop-up, or child window with an extended window style; otherwise, this function is identical to the CreateWindow function. For more information about creating a window and for full descriptions of the other parameters of CreateWindowEx, see CreateWindow.



我想-Ex代表``扩展''.
:)



-Ex stands for ''Extended'', I suppose.
:)


今天没有真正的区别-CreateWindow函数仅调用CreateWindowEx.

查看宏(来自MSDN)

Today there is no real difference - the CreateWindow Function just calls CreateWindowEx.

Look at the macros (from MSDN)

#define CreateWindowA(lpClassName, lpWindowName, dwStyle, x, y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam)\
CreateWindowExA(0L, lpClassName, lpWindowName, dwStyle, x, y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam)

#define CreateWindowW(lpClassName, lpWindowName, dwStyle, x, y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam)\
CreateWindowExW(0L, lpClassName, lpWindowName, dwStyle, x, y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam)

#ifdef UNICODE
#define CreateWindow  CreateWindowW
#else
#define CreateWindow  CreateWindowA
#endif


这篇关于CreateWindow()和CreateWindowEx之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆