正在进行中的功能---动态消息对话框(.h)

王朝vc·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

#if !defined(AFX_INFORMATIONTIP_H__45E0DBBE_CB8F_43E6_8557_3214917F1036__INCLUDED_)

#define AFX_INFORMATIONTIP_H__45E0DBBE_CB8F_43E6_8557_3214917F1036__INCLUDED_

#if _MSC_VER > 1000

#pragma once

#endif // _MSC_VER > 1000

// InformationTip.h : header file

//

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

// CInformationTip dialog

struct ScreenPos

{

long m_ScreenX;

long m_ScreenY;

ScreenPos(long x = 0,long y = 0):m_ScreenX(x),m_ScreenY(y)

{}

};

#define NEAR_SIDE 12

enum TIPSHOWPOS{E=1,W=9,N=8,S=2};

class CInformationTip : public CDialog

{

// Construction

public:

CInformationTip(CWnd* pParent = NULL); // standard constructor

void SetShowTipAtWhere(TIPSHOWPOS);

void SetShowTipTime(DWORD);

void SetKeepMoveStep(DWORD);

void SetDlgBkColor(COLORREF);

void SetDlgLayoutColor(int);

// Dialog Data

//{{AFX_DATA(CInformationTip)

enum { IDD = IDD_INFORMATIONTIP_DIALOG };

CCJFlatButton m_ButtonCtrl_TipInfo;

//}}AFX_DATA

// Overrides

// ClassWizard generated virtual function overrides

//{{AFX_VIRTUAL(CInformationTip)

public:

virtual BOOL PreTranslateMessage(MSG* pMsg);

protected:

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

//}}AFX_VIRTUAL

// Implementation

protected:

// Generated message map functions

//{{AFX_MSG(CInformationTip)

virtual BOOL OnInitDialog();

afx_msg void OnSize(UINT nType, int cx, int cy);

afx_msg void OnTimer(UINT nIDEvent);

afx_msg void OnKillFocus(CWnd* pNewWnd);

afx_msg void OnMouseMove(UINT nFlags, CPoint point);

afx_msg void OnMove(int x, int y);

afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);

afx_msg void OnDestroy();

//}}AFX_MSG

afx_msg void OnOK();

afx_msg void Cancel();

afx_msg void OnClose();

DECLARE_MESSAGE_MAP()

private:

ScreenPos m_ScreenPos;

DWORD m_dwStep;

DWORD m_dwTime;

CRect m_rect;

CBrush m_DlkBkBrush;

BOOL m_IsAlreadyShow;

CFont m_TipInf_Font;

int m_iRate;

void ShowInformations(BOOL);

void KeepMoveMoveMove(BOOL);

void InitMemCtrl();

typedef BOOL(WINAPI *SET_FILL_CLR)(HWND,COLORREF,BYTE,DWORD);

SET_FILL_CLR m_fFill;

HINSTANCE m_hUser32DLL;

//CImageList m_TipInfoImage;

};

//{{AFX_INSERT_LOCATION}}

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

#endif // !defined(AFX_INFORMATIONTIP_H__45E0DBBE_CB8F_43E6_8557_3214917F1036__INCLUDED_)

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航