Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
CWndPaneSlider.h
Go to the documentation of this file.
1 //
4 //
5 
6 #ifndef _INC_CWndPaneSlider_H
7 #define _INC_CWndPaneSlider_H
8 #ifndef NO_PRAGMA_ONCE
9 #pragma once
10 #endif
11 
12 #include "../GrayLibBase.h"
13 #ifdef _MFC_VER
14 #include "../Geometry/cRectI.h"
15 
16 //*******************************************
17 // CWndPaneSlider window
18 namespace GrayLib
19 {
20 
21  class CWndPaneSlider : public CWnd // CButton
22  {
23  public:
24  CWndPaneSlider();
25 
26  // Attributes
27  public:
28  int m_iPaneSlideX;
29  int m_iPaneSlideWidth;
30  CWnd* m_pwndLeft;
31  CWnd* m_pwndRight;
32 
33  // Operations
34  public:
35 
36  // Overrides
37  // ClassWizard generated virtual function overrides
38  //{{AFX_VIRTUAL(CWndPaneSlider)
39  //}}AFX_VIRTUAL
40 
41  // Implementation
42  public:
43  virtual ~CWndPaneSlider();
44  void SetPaneWidth(CPoint pt);
45  void UpdatePositions(int cx, int cy);
46  void UpdatePositions();
47 
48  // Generated message map functions
49  protected:
50  //{{AFX_MSG(CWndPaneSlider)
51 #if _MSC_VER >= 1400
52  afx_msg LRESULT OnNcHitTest(CPoint point);
53 #else
54  afx_msg UINT OnNcHitTest(CPoint point);
55 #endif
56  afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
57  afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
58  //}}AFX_MSG
59  DECLARE_MESSAGE_MAP()
60 
61  NMHDR m_NMHdr;
62  };
63 }
64 //*******************************************
65 //{{AFX_INSERT_LOCATION}}
66 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
67 
68 #endif // !defined(_INC_CWndPaneSlider_H)
69 #endif
Definition: cMesh.h:22
cWndHandle CWnd
Definition: cWndHandle.h:669
cPoint2i CPoint
Compatible with MFC 2d CPoint,CRect.
Definition: cPoint2.h:65