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

#include <WindowPositionUtils.h>

Public Member Functions

 cfgDialogPositionTracker (cfgDialogPosition &p_var)
 
 ~cfgDialogPositionTracker ()
 
BOOL ProcessWindowMessage (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult)
 

Private Member Functions

void Cleanup ()
 

Private Attributes

cfgDialogPositionm_var
 
CWindow m_wnd
 

Detailed Description

Definition at line 293 of file WindowPositionUtils.h.

Constructor & Destructor Documentation

cfgDialogPositionTracker::cfgDialogPositionTracker ( cfgDialogPosition p_var)
inline

Definition at line 295 of file WindowPositionUtils.h.

295 : m_var(p_var) {}
cfgDialogPositionTracker::~cfgDialogPositionTracker ( )
inline

Definition at line 296 of file WindowPositionUtils.h.

Member Function Documentation

void cfgDialogPositionTracker::Cleanup ( )
inlineprivate

Definition at line 311 of file WindowPositionUtils.h.

311  {
312  if (m_wnd != NULL) {
314  m_wnd = NULL;
315  }
316  }
void RemoveWindow(CWindow wnd)
BOOL cfgDialogPositionTracker::ProcessWindowMessage ( HWND  hWnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
LRESULT &  lResult 
)
inline

Definition at line 298 of file WindowPositionUtils.h.

298  {
299  if (uMsg == WM_CREATE || uMsg == WM_INITDIALOG) {
300  Cleanup();
301  m_wnd = hWnd;
303  } else if (uMsg == WM_DESTROY) {
304  PFC_ASSERT( hWnd == m_wnd );
305  Cleanup();
306  }
307  return FALSE;
308  }
void AddWindow(CWindow wnd)

Field Documentation

cfgDialogPosition& cfgDialogPositionTracker::m_var
private

Definition at line 317 of file WindowPositionUtils.h.

CWindow cfgDialogPositionTracker::m_wnd
private

Definition at line 318 of file WindowPositionUtils.h.


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