本文介绍了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
推荐答案
创建具有扩展窗口样式的重叠窗口,弹出窗口或子窗口;否则,此函数与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.
:)
#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之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!