⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 demodlg.h

📁 smartphone 监听电源状态源码
💻 H
字号:
// demoDlg.h : header file
//

#pragma once
#include "winimage.h"
#include "afxwin.h"
// CdemoDlg dialog
class CdemoDlg : public CDialog
{
// Construction
public:
	CdemoDlg(CWnd* pParent = NULL);	// standard constructor
// Dialog Data
	enum { IDD = IDD_DEMO_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
#if defined(_DEVICE_RESOLUTION_AWARE) && !defined(WIN32_PLATFORM_WFSP)
	afx_msg void OnSize(UINT /*nType*/, int /*cx*/, int /*cy*/);
#endif
	DECLARE_MESSAGE_MAP()
public:
	void CreateDlg();
	void DestroyDlg();
	afx_msg void OnPaint();

protected:
	C_ImageSet m_AnimGif;
	HANDLE m_hThreadAnim;			// Thread Handle
	DWORD m_dwThreadIdAnim;		// Thread Identifier
public:
	C_ImageSet * m_pAnimation;	// Pointer to Animation Raster Information
	int m_CurrentImage;			// Current Image being displayed
	int m_CurrentLoop;			// Current Loop in animation
	BOOL m_bAnimationPlaying;		// TRUE when animation is playing.

	// CLASS FUNCTIONS: (not object functions!)
	static DWORD WINAPI fnThread (LPVOID lpParameter);

	// Animation control:
	void Play();				// Starts/Resumes animation
	void Stop();				// Stops(Pauses) animation (without rewinding)
	void Rewind();				// Rewinds animation (without stopping)
	BOOL IsPlaying();
	int LoadAnimatedGif(LPTSTR FileName);

};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -