プラットフォーム SDK
CreateRoundRectRgn
角の丸い長方形のリージョンを作成します。
HRGN CreateRoundRectRgn(
int nLeftRect, // 左上隅の x 座標
int nTopRect, // 左上隅の y 座標
int nRightRect, // 右下隅の x 座標
int nBottomRect, // 右下隅の y 座標
int nWidthEllipse, // 楕円の高さ
int nHeightEllipse // 楕円の幅
);
パラメータ
- nLeftRect
- 長方形の左上隅の x 座標を論理単位で指定します。
- nTopRect
- 長方形の左上隅の y 座標を論理単位で指定します。
- nRightRect
- 長方形の右下隅の x 座標を論理単位で指定します。
- nBottomRect
- 長方形の右下隅の y 座標を論理単位で指定します。
- nWidthEllipse
- 長方形の角の丸みを表す楕円の幅を論理単位で指定します。長方形の角には、幅 nWidthEllipse、高さ nHeightEllipse の楕円形に相当する丸みがつきます。
- nHeightEllipse
- 長方形の角の丸みを表す楕円の高さを論理単位で指定します。長方形の角には、幅 nWidthEllipse、高さ nHeightEllipse の楕円形に相当する丸みがつきます。
戻り値
関数が成功すると、リージョンのハンドルが返ります。
関数が失敗すると、NULL が返ります。
Windows NT/2000:拡張エラー情報を取得するには、 関数を使います。
対応情報
Windows NT/2000:Windows NT 3.1 以降
Windows 95/98:Windows 95 以降
ヘッダー:Wingdi.h 内で宣言、Windows.h をインクルード
インポートライブラリ:Gdi32.lib を使用
参照
CreateRectRgn, CreateRectRgnIndirect, DeleteObject, SelectObject