比较界面和客户区的大小,判断有没有横向滚动条
1.CRect rectWnd, rectClient;
GetWindowRect(&rectWnd);
GetClientRect(&rectClient);
if(rectWnd.Height()-rectClient.Height() >= GetSystemMetrics(SM_CYHSCROLL))
{}
if(rectWnd.Height()-rectClient.Height() >= GetSystemMetrics(SM_CYVSCROLL))
{}
2.GetScrollBarCtrl(SB_HORZ)-> IsWindowVisible()
3.
DWORD dwStyle = GetStyle();
if(dwStyle & WS_VSCROLL)
{
}