草庐IT

CreateWindowExA

全部标签

c++ - 我使用 CreateWindowExA 创建窗口。为什么我的窗口标题文本显示为多字节编码?

我有这个程序:#includeLRESULTCALLBACKWndProc(HWNDhWnd,UINTmessage,WPARAMwParam,LPARAMlParam){switch(message){caseWM_CLOSE:PostQuitMessage(0);break;default:returnDefWindowProc(hWnd,message,wParam,lParam);}return0;}intmain(){WNDCLASSAwnd_class={0};wnd_class.lpfnWndProc=WndProc;wnd_class.hInstance=GetModu