|
#if !defined(AFX_SLIDESON_H__CCE74D26_FAB5_44AA_9C59_07F780653056__INCLUDED_)
#define AFX_SLIDESON_H__CCE74D26_FAB5_44AA_9C59_07F780653056__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SlideSon.h : header file
//
#define WM_CLOSE_SLIDING WM_USER+5
/////////////////////////////////////////////////////////////////////////////
// CSlideSon dialog
#define FAST 3
#define MID 12
#define SLOW 25
enum SlideOption
{ LEFT,
RIGHT,
TOP,
BOTTOM
};
class CSlideSon : public CDialog
{
// Construction
public:
// CSlideSon (CWnd* pParent = NULL); // standard constructor
CSlideSon (UINT nDlgID,CWnd* pParent);
/* BOOL Create();*/
BOOL Close();
BOOL RePosition() ;
BOOL StartSlide() ;
void SetSlideSpeed(int nSpeed) {m_nSpeed = nSpeed ;}
int GetSpeed() {return m_nSpeed;}
void SetSlideDirection(SlideOption SlideDirection) {m_SlideDirection = SlideDirection;}
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSlideSon)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
SlideOption m_SlideDirection ;
CRect m_MyPos;
CRect OrigPos;
CWnd* m_pDlg;
BOOL m_Displayed;
int m_nSpeed;
// Generated message map functions
//{{AFX_MSG(CSlideSon)
virtual void OnOK();
virtual void OnCancel();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SLIDESON_H__CCE74D26_FAB5_44AA_9C59_07F780653056__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.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here