角の丸い矩形を描画する
Declare Function RoundRect lib "gdi32.dll" _
(ByVal hdc As Long, ByVal nLeftRect As Long, ByVal nTopRect As Long, _
ByVal nRightRect As Long, ByVal nBottomRect As Long, _
ByVal nWidth As Long, ByVal nHeight As Long) As Long
Declare Function RoundRect lib "gdi32.dll" _
(ByVal hdc As Integer, ByVal nLeftRect As Integer, ByVal nTopRect As Integer, _
ByVal nRightRect As Integer, ByVal nBottomRect As Integer, _
ByVal nWidth As Integer, ByVal nHeight As Integer) As Integer
BOOL RoundRect(
HDC hdc,
int nLeftRect,
int nTopRect,
int nRightRect,
int nBottomRect,
int nWidth,
int nHeight
);
引数
hdc
デバイスコンテキストのハンドルnLeftRect
矩形の左上隅のX座標nTopRect
同、Y座標nRightRect
同、右下隅のX座標nBottomRect
同、Y座標nWidth
コーナーを形成する円・楕円を包含する矩形の幅nHeight
同、高さ戻り値
正常終了のとき 0以外備考
エラーのとき 0
この関数を実行してもペンの現在位置は変更されない。サンプル
塗りつぶしはデバイスコンテキストに選択されているブラシで行われる。
線の描画はデバイスコンテキストに選択されているペンで行われる。