Warning: file_get_contents(https://whois.pconline.com.cn/jsLabel.jsp?ip=127.0.0.1) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 503 Service Temporarily Unavailable in D:\wwwroot\huidong\wwwroot\function.inc.php on line 884
设置cmd窗口大小 - huidong

huidong

首页 | 会员登录 | 关于争取 2022 寒假做出汇东网 Ver3.0.0 !
搜索文章


cmd窗口很倔,你就是用setwindowpos设置它的大小也不能设置得比他的默认大小还大,但是system命令可以:

system("mode con cols=30 lines=20");

cols是宽,lines是高


这样就设置了cmd的大小,然后再用setwindowpos就可以在这个范围内设置cmd的大小了。



返回首页


Copyright (C) 2018-2024 huidong