请教下各位,使用此函数想创建没有标题框,没有按钮框,完全透明的窗口,如何做?i_style我已经试过很多宏了。都不行。 p_event->hwnd =
CreateWindowEx( WS_EX_NOPARENTNOTIFY | i_stylex,
p_event->class_main, /* name of window class */
_T(VOUT_TITLE) _T(" (DirectX Output 1)"), /* window title */
i_style, /* window style */
(!p_event->wnd_cfg.x) ? CW_USEDEFAULT :
(UINT)p_event->wnd_cfg.x, /* default X coordinate */
(!p_event->wnd_cfg.y) ? CW_USEDEFAULT :
(UINT)p_event->wnd_cfg.y, /* default Y coordinate */
rect_window.right - rect_window.left, /* window width */
rect_window.bottom - rect_window.top, /* window height */
p_event->hparent, /* parent window */
NULL, /* no menu in this window */
hInstance, /* handle of this program instance */
(LPVOID)p_event ); /* send vd to WM_CREATE */
CreateWindowEx( WS_EX_NOPARENTNOTIFY | i_stylex,
p_event->class_main, /* name of window class */
_T(VOUT_TITLE) _T(" (DirectX Output 1)"), /* window title */
i_style, /* window style */
(!p_event->wnd_cfg.x) ? CW_USEDEFAULT :
(UINT)p_event->wnd_cfg.x, /* default X coordinate */
(!p_event->wnd_cfg.y) ? CW_USEDEFAULT :
(UINT)p_event->wnd_cfg.y, /* default Y coordinate */
rect_window.right - rect_window.left, /* window width */
rect_window.bottom - rect_window.top, /* window height */
p_event->hparent, /* parent window */
NULL, /* no menu in this window */
hInstance, /* handle of this program instance */
(LPVOID)p_event ); /* send vd to WM_CREATE */
解决方案 »
- 简单问题:怎么将CString转换为unsigned int *类型?非常感谢
- VC++6.0/Visual C++ 6.0与Microsoft Visual Studio.Net 2005/2008的区别
- 用WriteFile()写文件时,如果指定写入大小是1M,而函数实际写入少于1M,怎么办?
- 编码后的音频总是一跳一跳的是什么原因呢?
- 我的程序为什么运行时出现错误!!
- DWORD类型是什么意思啊,大家给解释一下
- 如何在vc6.0中调用matlab引擎程序?望大侠们指点。
- SDI单视图下如何实现动态加载CEdit控件或者文本控件
- ACE中Proactor服务器主动断开,无法释放连接,求助啊!
- 关于软件加密问题
- 如何创建一个没有边框与标题,只有客户区的窗口?
- 窗口截图
CreateWindowEx( WS_EX_NOPARENTNOTIFY | i_stylex,
p_event->class_main, /* name of window class */
_T(VOUT_TITLE) _T(" (DirectX Output 1)"), /* window title */
i_style, /* window style */这里指定下,不要标题栏
(!p_event->wnd_cfg.x) ? CW_USEDEFAULT :
(UINT)p_event->wnd_cfg.x, /* default X coordinate */
(!p_event->wnd_cfg.y) ? CW_USEDEFAULT :
(UINT)p_event->wnd_cfg.y, /* default Y coordinate */
rect_window.right - rect_window.left, /* window width */
rect_window.bottom - rect_window.top, /* window height */
p_event->hparent, /* parent window */
NULL, /* no menu in this window */
hInstance, /* handle of this program instance */
(LPVOID)p_event ); /* send vd to WM_CREATE */
define WS_OVERLAPPEDWINDOW (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME| WS_MINIMIZEBOX | WS_MAXIMIZEBOX)style初始化时被定义为:
i_style = WS_OVERLAPPEDWINDOW|WS_SIZEBOX|WS_VISIBLE|WS_CLIPCHILDREN;我的本意是创建出一个层叠窗口没有边框与标题,只有客户区的窗口?
i_style=WS_POPUP|WS_SYSMENU|WS_VISIBLE|WS_CLIPCHILDREN;