platdetect.c
来自「DBVIEW is a small Windows application th」· C语言 代码 · 共 34 行
C
34 行
#include <windows.h>
#include "platdetect.h"
int GuessPlatform()
{
int iHeight, iWidth;
iHeight = GetSystemMetrics(SM_CYSCREEN);
iWidth = GetSystemMetrics(SM_CXSCREEN);
if (iHeight > iWidth)
{
return(PLAT_PPC);
}
else if (iHeight < iWidth)
{
if ((iHeight == HPCPRO_HEIGHT) && (iWidth == HPCPRO_WIDTH))
{
return(PLAT_HPCPRO);
}
else if (iHeight == APC_HEIGHT)
{
return(PLAT_APC);
}
else
{
return(PLAT_HPC);
}
}
else
{
return(PLAT_OTHER);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?