Click here to Skip to main content
15,891,905 members
Articles / Desktop Programming / MFC

CCoolFXStatic

Rate me:
Please Sign up or sign in to vote.
5.00/5 (10 votes)
13 Jul 2009CPOL3 min read 49.4K   2.4K   58  
A CStatic derived class that wraps the cool FX effect by dswigger.
#if !defined(AFX_RANDOMFXSTATIC_H__159B4606_20C9_47AC_B2E0_4812A44720D9__INCLUDED_)
#define AFX_RANDOMFXSTATIC_H__159B4606_20C9_47AC_B2E0_4812A44720D9__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// RandomFXStatic.h : header file
//

#include "CoolFXStatic.h"

/////////////////////////////////////////////////////////////////////////////
// CRandomFXStatic window

class CRandomFXStatic : public CCoolFXStatic
{
// Construction
public:
	CRandomFXStatic(BOOL alwaysAnimate = FALSE);

public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRandomFXStatic)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CRandomFXStatic();

public:
	static int GetHighestSetBit(int num);

protected:
	BOOL alwaysAnimate;
	virtual void InitFX(HBITMAP hBitmap);

	// Generated message map functions
protected:
	//{{AFX_MSG(CRandomFXStatic)
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_RANDOMFXSTATIC_H__159B4606_20C9_47AC_B2E0_4812A44720D9__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Singapore Singapore
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions