#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_)
本文地址:http://com.8s8s.com/it/it299.htm