...等子窗口控件是默认的Windows经典样式,如何改变?
发布网友
发布时间:2024-09-15 10:11
我来回答
共3个回答
热心网友
时间:2024-10-01 13:26
组合或者去除某些风格、
譬如我想有这两个属性:WS_EX_ACCEPTFILES||WS_EX_APPWINDOW
或者我想去掉某个样式的属性:WS_EX_PALETTEWINDOW&~WS_WX_TOPMOST
或者你可以使用DLL组件。去实现动态的皮肤
win7的样式是系统提供的,也就相当于DLL组件,你如果是在win7环境下运行就会有这些属性啊
热心网友
时间:2024-10-01 13:28
没有试过哦
你可以试试调整CreateWindowEx第一个参数的值.
http://baike.baidu.com/view/1080304.htm
热心网友
时间:2024-10-01 13:25
在其中一个头文件中加入下面的代码
------------------------------
#if defined _M_IX86
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_IA64
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_X64
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#else
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#endif