首页上一页 1 下一页尾页 1 条记录 1/1页
怎么理解SM_CYBORDER和SM_CYFIXEDFRAME
发表在C语言图书答疑
2010-05-17
是否精华
是
否
版块置顶:
是
否
在Visual C++第一个例子中
int nFrameCY = GetSystemMetrics(SM_CYFIXEDFRAME);
int nFrameCX = GetSystemMetrics(SM_CXFIXEDFRAME);
//获取对话框是否有边框
if (GetStyle() & WS_BORDER)
{
m_nBorderCY = GetSystemMetrics(SM_CYBORDER) + nFrameCY;
m_nBorderCX = GetSystemMetrics(SM_CXBORDER) + nFrameCX;
}
else
{
m_nBorderCY = nFrameCY;
m_nBorderCX = nFrameCX;
}
GetSystemMetrics在取SM_CYBORDER和SM_CYFIXEDFRAME时取得的值到底是什么
int nFrameCY = GetSystemMetrics(SM_CYFIXEDFRAME);
int nFrameCX = GetSystemMetrics(SM_CXFIXEDFRAME);
//获取对话框是否有边框
if (GetStyle() & WS_BORDER)
{
m_nBorderCY = GetSystemMetrics(SM_CYBORDER) + nFrameCY;
m_nBorderCX = GetSystemMetrics(SM_CXBORDER) + nFrameCX;
}
else
{
m_nBorderCY = nFrameCY;
m_nBorderCX = nFrameCX;
}
GetSystemMetrics在取SM_CYBORDER和SM_CYFIXEDFRAME时取得的值到底是什么