複製鏈接
請複製以下鏈接發送給好友

SetRectRgn

鎖定
SetRectRgn是一個編程函數。
外文名
SetRectRgn
適用領域
編程函數
SetRectRgn
VB聲明
Declare Function SetRectRgn Lib "gdi32" Alias "SetRectRgn" (ByVal hRgn As Long, ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
説明
設置區域為X1,Y1和X2,Y2描述的矩形
返回值
Long,執行成功為非零值,失敗為0
參數表
參數 類型及説明
hRgn Long,該區域將被設置為指定矩形
X1,Y1 Long,矩形左上角X,Y座標
X2,Y2 Long,矩形右下角X,Y座標
註解
本函數與CreateRectRgn相同,只是它是設置一個已存在區域而不是創建一個新區域
矩形的底和右邊不包括在區域內