您的位置:寻梦网首页编程乐园VB 编程VB API 指南
DrawFrameControl
VB声明
Declare Function DrawFrameControl Lib "user32" Alias "DrawFrameControl" (ByVal hDC As Long, lpRect As RECT, ByVal un1 As Long, ByVal un2 As Long) As Long
说明
这个函数用于描绘一个标准控件。例如,可描绘一个按钮或滚动条的帧(原文:This function draws a standard control. For example, you can draw the frame of a button or scrollbar.)
返回值
Long,非零表示成功,零表示失败。会设置GetLastError
参数表
参数 类型及说明
hDC Long,要在其中作画的设备场景
lpRect RECT,指定帧的位置及大小的一个矩形
un1 Long,指定帧类型的一个常数。这些常数包括DFC_BUTTON,DFC_CAPTION,DFC_MENU,以及DFC_SCROLL
un2 Long,一个常数,指定欲描绘的帧的状态。由带有前缀DFCS_的一个常数构成