本文介绍了表格大小C ++请帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我想在c ++中将表单大小更改为我的程序我希望它看起来像这样 Imgur:互联网上最棒的图像 [ ^ ]但出于某种原因,当我放大小时这个边框在我的c ++中的表单代码中看起来并不像在这里那么大的图像 Imgur:互联网上最棒的图像 [ ^ ]这里是代码。 void ShowForm(){ hInstance = GetModuleHandle(NULL); MSG消息; hMenu = CreateDLLWindowMenu(); RegisterDLLWindowClass(L DLLWindowClass); prnt_hWnd = FindWindow(NULL,L ROBLOX); MainWindowHWND = CreateWindowExW( 0 ,L DLLWindowClass,L AL7 v1.1,WS_EX_PALETTEWINDOW,CW_USEDEFAULT,CW_USEDEFAULT, 759 , 355 ,prnt_hWnd,hMenu,hInstance,NULL); CreateFWindows(); ShowWindow(MainWindowHWND,SW_SHOWNORMAL); while (GetMessage(& messages,NULL, 0 , 0 )) { TranslateMessage(& messages); DispatchMessage(& messages); } } 我的尝试: 我想用c ++将表单大小更改为我的程序我希望它看起来像这样 Imgur :互联网上最棒的图片 [ ^ ]但是有些原因,当我在c ++中将相同大小的边框放入我的表单代码时,它看起来不那么大图像 Imgur:最棒的图像在互联网上 [ ^ ] 解决方案 你的程序是否处理WM_GETMINMAXINFO? WM_GETMINMAXINFO消息(Windows) [ ^ ] I am trying to change the form size to my program in c++ I want it to look like this Imgur: The most awesome images on the Internet[^] but for some reason when I put the same size of that border into my form code in c++ and it does not look as big here image Imgur: The most awesome images on the Internet[^] here is the code.void ShowForm() {hInstance = GetModuleHandle(NULL);MSG messages;hMenu = CreateDLLWindowMenu();RegisterDLLWindowClass(L"DLLWindowClass");prnt_hWnd = FindWindow(NULL, L"ROBLOX");MainWindowHWND = CreateWindowExW(0, L"DLLWindowClass", L"AL7 v1.1", WS_EX_PALETTEWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 759, 355, prnt_hWnd, hMenu, hInstance, NULL);CreateFWindows();ShowWindow(MainWindowHWND, SW_SHOWNORMAL);while (GetMessage(&messages, NULL, 0, 0)){TranslateMessage(&messages);DispatchMessage(&messages);}}What I have tried:I am trying to change the form size to my program in c++ I want it to look like this Imgur: The most awesome images on the Internet[^] but for some reason when I put the same size of that border into my form code in c++ and it does not look as big here image Imgur: The most awesome images on the Internet[^] 解决方案 Does your program handle WM_GETMINMAXINFO ?WM_GETMINMAXINFO message (Windows)[^] 这篇关于表格大小C ++请帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-22 13:00