次の方法で共有


CWindow::SetRedraw

ウィンドウに WM_SETREDRAW のメッセージを送信して再描画のフラグを設定または解除します。

void SetRedraw(
   BOOL bRedraw = TRUE 
) throw();

パラメーター

  • bRedraw
    [入力]再描画フラグの状態を指定します。[真] (既定値) に設定されている場合、再描画のフラグ; FALSEがオフの場合、フラグ。

解説

再描画するように変更が、または再描画するの変更を防ぐ使用 SetRedraw

使用例

//The following example attaches an HWND to the CWindow object and 
//calls CWindow::SetRedraw() to set and reset the redraw flag

CWindow myWindow;
myWindow.Attach(hWnd);
myWindow.SetRedraw();      //sets the redraw flag to TRUE
//
//
myWindow.SetRedraw(FALSE); //sets the redraw flag to FALSE

必要条件

Header: atlwin.h

参照

関連項目

CWindow クラス