123
This commit is contained in:
104
Editor/Controls/DropWnd.h
Normal file
104
Editor/Controls/DropWnd.h
Normal file
@@ -0,0 +1,104 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// DropWnd.h : header file
|
||||
//
|
||||
// CAdvComboBox Control
|
||||
// Version: 2.1
|
||||
// Date: September 2002
|
||||
// Author: Mathias Tunared
|
||||
// Email: Mathias@inorbit.com
|
||||
// Copyright (c) 2002. All Rights Reserved.
|
||||
//
|
||||
// This code, in compiled form or as source code, may be redistributed
|
||||
// unmodified PROVIDING it is not sold for profit without the authors
|
||||
// written consent, and providing that this notice and the authors name
|
||||
// and all copyright notices remains intact.
|
||||
//
|
||||
// This file is provided "as is" with no expressed or implied warranty.
|
||||
// The author accepts no liability for any damage/loss of business that
|
||||
// this product may cause.
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#if !defined(AFX_DROPWND_H__F873AF0A_BD7D_4B20_BDF6_1EBB973AA348__INCLUDED_)
|
||||
#define AFX_DROPWND_H__F873AF0A_BD7D_4B20_BDF6_1EBB973AA348__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
// DropWnd.h : header file
|
||||
//
|
||||
|
||||
#include "DropListBox.h"
|
||||
#include "DropScrollBar.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CDropWnd window
|
||||
|
||||
class CDropWnd : public CWnd
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CDropWnd();
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
const CDropListBox& GetListBox() const { return m_listbox; }
|
||||
CDropListBox& GetListBox() { return m_listbox; }
|
||||
const CDropScrollBar& GetScrollBar() const { return m_scrollbar; }
|
||||
CDropScrollBar& GetScrollBar() { return m_scrollbar; }
|
||||
|
||||
// Operations
|
||||
public:
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CDropWnd)
|
||||
public:
|
||||
virtual BOOL DestroyWindow();
|
||||
protected:
|
||||
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
public:
|
||||
virtual ~CDropWnd();
|
||||
|
||||
// Generated message map functions
|
||||
protected:
|
||||
//{{AFX_MSG(CDropWnd)
|
||||
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
||||
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
|
||||
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
|
||||
afx_msg void OnSize(UINT nType, int cx, int cy);
|
||||
afx_msg void OnPaint();
|
||||
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
|
||||
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
|
||||
#if _MFC_VER >= 0x0700 //MFC 7.0
|
||||
afx_msg void OnActivateApp(BOOL bActive, DWORD dwThreadID);
|
||||
#else
|
||||
afx_msg void OnActivateApp(BOOL bActive, HTASK hTask );
|
||||
#endif
|
||||
//}}AFX_MSG
|
||||
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
|
||||
afx_msg LRESULT OnSetCapture( WPARAM wParam, LPARAM lParam );
|
||||
afx_msg LRESULT OnReleaseCapture( WPARAM wParam, LPARAM lParam );
|
||||
DECLARE_MESSAGE_MAP()
|
||||
|
||||
private:
|
||||
CDropListBox m_listbox;
|
||||
CDropScrollBar m_scrollbar;
|
||||
CRect m_rcList;
|
||||
CRect m_rcScroll;
|
||||
CRect m_rcSizeHandle;
|
||||
|
||||
bool m_bResizing;
|
||||
CPoint m_ptLastResize;
|
||||
int m_nMouseDiffX;
|
||||
int m_nMouseDiffY;
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_DROPWND_H__F873AF0A_BD7D_4B20_BDF6_1EBB973AA348__INCLUDED_)
|
||||
Reference in New Issue
Block a user