CButton::GetCursor

更新 : 2007 年 11 月

このメンバ関数は、以前に SetCursor で設定されたカーソル イメージのハンドルを取得するために呼び出します。

HCURSOR GetCursor( ); 

戻り値

カーソル イメージのハンドルを返します。以前にカーソル イメージが指定されてない場合は NULL を返します。

使用例

CButton myIconButton;

// Create an icon button.
myIconButton.Create(_T("My button"), WS_CHILD|WS_VISIBLE|BS_ICON, 
   CRect(10,10,60,50), pParentWnd, 1);

// If no image is defined for the button, define the image to the
// system arrow and question mark cursor.
if (myIconButton.GetCursor() == NULL)
   myIconButton.SetCursor(::LoadCursor(NULL, IDC_HELP));

必要条件

ヘッダー : afxwin.h

参照

参照

CButton クラス

階層図

CButton::SetCursor

CBitmapButton::LoadBitmaps

Bitmaps

その他の技術情報

CButton のメンバ