如何获得窗体边框宽度(XP下窗体周围的小蓝条宽度)用GetSystem...什么了,忘了? ( 积分: 50 )

  • 主题发起人 主题发起人 bcfans
  • 开始时间 开始时间
B

bcfans

Unregistered / Unconfirmed
GUEST, unregistred user!
如何获得窗体边框宽度(XP下窗体周围的小蓝条宽度)用GetSystem...什么了,忘了?<br>另外,里面用哪个参数,我记得MSDN里面很多相似功能的参数,不知道用哪个?
 
如何获得窗体边框宽度(XP下窗体周围的小蓝条宽度)用GetSystem...什么了,忘了?<br>另外,里面用哪个参数,我记得MSDN里面很多相似功能的参数,不知道用哪个?
 
=GetSystemMetrics(SM_CXBORDER)<br>=GetSystemMetrics(SM_CYBORDER)<br><br>SM_CXBORDER, <br>SM_CYBORDER Width and height, in pixels, of a window border. This is equivalent to the SM_CXEDGE value for windows with the 3-D look. <br>SM_CXDLGFRAME,<br>SM_CYDLGFRAME Same as SM_CXFIXEDFRAME and SM_CYFIXEDFRAME. <br>SM_CXFIXEDFRAME,<br>SM_CYFIXEDFRAME Thickness, in pixels, of the frame around the perimeter of a window that has a caption but is not sizable. SM_CXFIXEDFRAME is the width of the horizontal border and SM_CYFIXEDFRAME is the height of the vertical border. <br>Same as SM_CXDLGFRAME and SM_CYDLGFRAME.<br>SM_CXFRAME,<br>SM_CYFRAME Same as SM_CXSIZEFRAME and SM_CYSIZEFRAME <br>SM_CXSIZEFRAME,<br>SM_CYSIZEFRAME Thickness, in pixels, of the sizing border around the perimeter of a window that can be resized. SM_CXSIZEFRAME is the width of the horizontal border, and SM_CYSIZEFRAME is the height of the vertical border. <br>Same as SM_CXFRAME and SM_CYFRAME.<br><br>边框跟窗口样式有关,基本就这几个。
 
接受答案了.
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
606
import
I
I
回复
0
查看
786
import
I
后退
顶部