x = GetSystemMetrics(SM_CXFIXEDFRAME);
y = GetSystemMetrics(SM_CYFIXEDFRAME);
h = GetSystemMetrics(SM_CYSIZE);
cout << x << ":" << y << ":" << h << endl;
x = GetSystemMetrics(SM_CXFRAME);
y = GetSystemMetrics(SM_CYFRAME);
h = GetSystemMetrics(SM_CYSMCAPTION);
cout << x << ":" << y << ":" << h << endl;
SM_CXFIXEDFRAME 围绕具有标题但无法改变尺寸的窗口(通常是一些对话框)的边框的厚度
SM_CXFRAME,SM_CYFRAME 等同于SM_CXSIZEFRAME and SM_CYSIZEFRAME 可以改变大小的窗口边框,比如记事本、word软件