为什么SDK写出来的控件比MFC拖上去的丑?解决思路(转)
为什么SDK写出来的控件比MFC拖上去的丑?
这不能忍!求什么代码能让左边的和右边的一样!
左边的代码是:
hinput = CreateWindowExW(NULL,L"EDIT",L"",WS_BORDER | WS_VISIBLE
| WS_CHILD ,
25,
40,
200,25,hwnd,idhinput,NULL,0);
houtput = CreateWindowExW(NULL,L"EDIT",L"",WS_BORDER | WS_VISIBLE
| WS_CHILD | WS_VSCROLL | ES_MULTILINE | ES_READONLY,
25,
80,
400,130,hwnd,idhoutput,NULL,0);
hbutton = CreateWindowExW(NULL,L"BUTTON",L"查询",WS_BORDER | WS_VISIBLE
| WS_CHILD,350,25,50,25,hwnd,idhbutton,NULL,0);
要怎么才能和右边一样或者更好???
****************************************************************************************************
解决方案:
#ifdef _UNICODE
#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
#endif

浙公网安备 33010602011771号