次の方法で共有


CWinAppEx::InitMouseManager

CMouseManager オブジェクトを初期化します。

BOOL InitMouseManager();

戻り値

メソッドが CMouseManager オブジェクトを作成する場合は 0 以外。CMouseManager オブジェクトが既に存在する場合は 0。

解説

CWinAppEx::GetMouseManager を呼び出すと、そのメソッドの既定の実装は InitMouseManager を呼び出します。

アプリケーションにマウス マネージャーが既にあるときに、InitMouseManager を呼び出すと、アプリケーションで ASSERT エラーが発生します。 したがって、CMouseManager オブジェクトを直接作成する場合は、InitMouseManager を呼び出さないでください。 カスタム CMouseManager を使用していない場合は、GetMouseManager を使用して CMouseManager オブジェクトを作成する必要があります。

必要条件

**ヘッダー:**afxwinappex.h

参照

参照

CWinAppEx クラス

階層図

CWinAppEx::GetMouseManager

CMouseManager クラス