HWND CreateWindowEx( DWORD dwExStyle, // extended window style LPCTSTR lpClassName, // registered class name LPCTSTR lpWindowName, // window name DWORD dwStyle, // window style int x, // horizontal position of window int y, // vertical position of window int nWidth, // window width int nHeight, // window height HWND hWndParent, // handle to parent or owner window HMENU hMenu, // menu handle or child identifier HINSTANCE hInstance, // handle to application instance LPVOID lpParam // window-creation data ); 其中dwExStyle =WS_EX_TRANSPARENT; 即可得到透明窗体。你试试吧 :-P
DWORD dwExStyle, // extended window style
LPCTSTR lpClassName, // registered class name
LPCTSTR lpWindowName, // window name
DWORD dwStyle, // window style
int x, // horizontal position of window
int y, // vertical position of window
int nWidth, // window width
int nHeight, // window height
HWND hWndParent, // handle to parent or owner window
HMENU hMenu, // menu handle or child identifier
HINSTANCE hInstance, // handle to application instance
LPVOID lpParam // window-creation data
);
其中dwExStyle =WS_EX_TRANSPARENT;
即可得到透明窗体。你试试吧
:-P
透明问题继续关注。
隐隐约约可以看到下面的东西的
而且,对下面的窗口没有任何影响
下面的窗口还是即或状态的
在其它的下面。好像要用AlphaBlend,TransparentBlt这些东西的
在9X下怎么办
我的程序运行环境是9X/NT/2000的
具体的代码我这没有。你去GOOGLE找一下吧。。大概就是用那些API实现的。。