foobar2000 SDK  2015-08-03
Public Member Functions | Data Fields | Private Types | Private Member Functions | Private Attributes
CFlashWindow

#include <misc.h>

+ Inheritance diagram for CFlashWindow:

Public Member Functions

void Activate (CWindow parent)
 
 BEGIN_MSG_MAP_EX (CFlashWindow) MSG_WM_CREATE(OnCreate) MSG_WM_TIMER(OnTimer) MSG_WM_DESTROY(OnDestroy) END_MSG_MAP() DECLARE_WND_CLASS_EX(TEXT("
 
void CleanUp () throw ()
 
void Deactivate () throw ()
 
void ShowAbove (CWindow parent)
 

Data Fields

 COLOR_HIGHLIGHT
 

Private Types

enum  { KTimerID = 0x47f42dd0 }
 

Private Member Functions

LRESULT OnCreate (LPCREATESTRUCT) throw ()
 
void OnDestroy () throw ()
 
void OnTimer (WPARAM id)
 

Private Attributes

CWindow m_parent
 
t_uint32 m_tickCount
 

Detailed Description

Definition at line 207 of file misc.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
KTimerID 

Definition at line 243 of file misc.h.

243  {
244  KTimerID = 0x47f42dd0
245  };

Member Function Documentation

void CFlashWindow::Activate ( CWindow  parent)
inline

Definition at line 209 of file misc.h.

209  {
210  ShowAbove(parent);
211  m_tickCount = 0;
212  SetTimer(KTimerID, 500);
213  }
void ShowAbove(CWindow parent)
Definition: misc.h:218
t_uint32 m_tickCount
Definition: misc.h:267
CFlashWindow::BEGIN_MSG_MAP_EX ( CFlashWindow  )
inline

Definition at line 232 of file misc.h.

238  {2E124D52-131F-4004-A569-2316615BE63F}"),0,COLOR_HIGHLIGHT);
void CFlashWindow::CleanUp ( )
throw (
)
inline

Definition at line 228 of file misc.h.

228  {
229  if (m_hWnd != NULL) DestroyWindow();
230  }
void CFlashWindow::Deactivate ( )
throw (
)
inline

Definition at line 214 of file misc.h.

214  {
215  ShowWindow(SW_HIDE); KillTimer(KTimerID);
216  }
LRESULT CFlashWindow::OnCreate ( LPCREATESTRUCT  )
throw (
)
inlineprivate

Definition at line 262 of file misc.h.

262  {
263  SetLayeredWindowAttributes(*this,0,128,LWA_ALPHA);
264  return 0;
265  }
void CFlashWindow::OnDestroy ( )
throw (
)
inlineprivate

Definition at line 240 of file misc.h.

240  {
241  KillTimer(KTimerID);
242  }
void CFlashWindow::OnTimer ( WPARAM  id)
inlineprivate

Definition at line 246 of file misc.h.

246  {
247  if (id == KTimerID) {
248  switch(++m_tickCount) {
249  case 1:
250  ShowWindow(SW_HIDE);
251  break;
252  case 2:
254  break;
255  case 3:
256  ShowWindow(SW_HIDE);
257  KillTimer(KTimerID);
258  break;
259  }
260  }
261  }
CWindow m_parent
Definition: misc.h:266
void ShowAbove(CWindow parent)
Definition: misc.h:218
t_uint32 m_tickCount
Definition: misc.h:267
void CFlashWindow::ShowAbove ( CWindow  parent)
inline

Definition at line 218 of file misc.h.

218  {
219  if (m_hWnd == NULL) {
220  WIN32_OP( Create(NULL) != NULL );
221  }
222  CRect rect;
223  WIN32_OP_D( parent.GetWindowRect(rect) );
224  WIN32_OP_D( SetWindowPos(NULL,rect,SWP_NOZORDER | SWP_NOACTIVATE | SWP_SHOWWINDOW) );
225  m_parent = parent;
226  }
CWindow m_parent
Definition: misc.h:266

Field Documentation

CFlashWindow::COLOR_HIGHLIGHT

Definition at line 238 of file misc.h.

CWindow CFlashWindow::m_parent
private

Definition at line 266 of file misc.h.

t_uint32 CFlashWindow::m_tickCount
private

Definition at line 267 of file misc.h.


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