Control.OnPaintBackground メソッド
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文Dim pevent As PaintEventArgs Me.OnPaintBackground(pevent)
解説OnPaintBackground メソッドは、派生クラスで Windows のバックグラウンド消去要求を処理できるようにします。
継承時の注意 クラスを継承すると、このメソッドをオーバーライドして、ウィンドウからの背景消去要求を処理する必要があります。派生クラスで OnPaintBackground をオーバーライドする場合は、基本クラスの OnPaintBackground を呼び出す必要はありません。ただし、Windows の既定の動作が不要な場合は、イベントの Handled プロパティを true に設定する必要があります。
プラットフォームWindows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照Weblioに収録されているすべての辞書からControl.OnPaintBackground メソッドを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からControl.OnPaintBackground メソッド
を検索
- Control.OnPaintBackground メソッドのページへのリンク