foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
NoRedrawScopeEx

#include <WTL-PP.h>

Public Member Functions

 NoRedrawScopeEx (HWND p_wnd) throw ()
 
 ~NoRedrawScopeEx () throw ()
 

Private Attributes

bool m_active
 
CWindow m_wnd
 

Detailed Description

Definition at line 17 of file WTL-PP.h.

Constructor & Destructor Documentation

NoRedrawScopeEx::NoRedrawScopeEx ( HWND  p_wnd)
throw (
)
inline

Definition at line 19 of file WTL-PP.h.

19  : m_wnd(p_wnd), m_active() {
20  if (m_wnd.IsWindowVisible()) {
21  m_active = true;
22  m_wnd.SetRedraw(FALSE);
23  }
24  }
bool m_active
Definition: WTL-PP.h:32
CWindow m_wnd
Definition: WTL-PP.h:33
NoRedrawScopeEx::~NoRedrawScopeEx ( )
throw (
)
inline

Definition at line 25 of file WTL-PP.h.

25  {
26  if (m_active) {
27  m_wnd.SetRedraw(TRUE);
28  m_wnd.RedrawWindow(NULL,NULL,RDW_INVALIDATE|RDW_ERASE|RDW_ALLCHILDREN);
29  }
30  }
bool m_active
Definition: WTL-PP.h:32
CWindow m_wnd
Definition: WTL-PP.h:33

Field Documentation

bool NoRedrawScopeEx::m_active
private

Definition at line 32 of file WTL-PP.h.

CWindow NoRedrawScopeEx::m_wnd
private

Definition at line 33 of file WTL-PP.h.


The documentation for this class was generated from the following file: