Warning: file_get_contents() [function.file-get-contents]: SSL: 远程主机强迫关闭了一个现有的连接。 in D:\wwwroot\huidong\wwwroot\function.inc.php on line 884

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! in D:\wwwroot\huidong\wwwroot\function.inc.php on line 884
C设置系统分辨率 - huidong

huidong

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


https://qa.codeabc.cn/question/1904


#include <ddraw.h>
#pragma comment (lib,"ddraw.lib")

bool ChangeDisSize(int cx, int cy)    // 分辨率设置为 cx × cy,退出程序时自动还原
{
    LPDIRECTDRAW DXW;
    HRESULT ddrval;
    ddrval = DirectDrawCreate(NULL, &DXW, NULL);
    if (DD_OK != DD_OK) return FALSE;    // 创建DirectDraw对象失败返回
    ddrval = DXW->SetCooperativeLevel(NULL, DDSCL_NORMAL);
    if (DD_OK != DD_OK) return FALSE;    // 取得窗口模式失败返回
    ddrval = DXW->SetDisplayMode(cx, cy, 16);
    if (DD_OK != DD_OK) return FALSE;    // 设置显示模式失败返回
}




返回首页


Copyright (C) 2018-2024 huidong