- dtxfull.zip
- Bin
- DTX.mdb
- DTXDemo.exe
- Doc
- backdemo.jpg
- backdemosml.jpg
- celibol4.gif
- celibolbg.gif
- combos.jpg
- combossml.jpg
- DTX.html
- edits.jpg
- editsml.jpg
- employee.jpg
- employeesml.jpg
- image.jpg
- imagesml.jpg
- labels.jpg
- labelssml.jpg
- myfriends.jpg
- myfriendssml.jpg
- myprog.jpg
- myprogramssml.jpg
- DTXDemo
- README.TXT
- Src
|
#if !defined(AFX_POPUPCOMBO_H__DAB9CE4E_DE72_477E_BA03_EF83C8D0B6D4__INCLUDED_)
#define AFX_POPUPCOMBO_H__DAB9CE4E_DE72_477E_BA03_EF83C8D0B6D4__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PopupCombo.h : header file
//
#include <DTXComboBox.h>
class CPopupCombo;
class CPopupWnd : public CWnd
{
public:
CPopupWnd(CComboBox* pWnd);
void SetPopupCombo(CComboBox* pCombo)
{ pWndCombo = pCombo; }
virtual BOOL Create(int x, int y, int w, int h,
DWORD dwStyleEX = WS_EX_TOPMOST|WS_EX_TOOLWINDOW,
DWORD dwStyle = WS_POPUP | WS_VISIBLE,
HWND pParent = NULL);
protected:
//{{AFX_MSG(CCalcWnd)
afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
CComboBox* pWndCombo;
virtual void InitFont()
{};
};
/////////////////////////////////////////////////////////////////////////////
// CPopupCombo window
class CPopupCombo : public CComboBox
{
// Construction
public:
CPopupCombo();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPopupCombo)
//}}AFX_VIRTUAL
// Implementation
public:
void SetPopupWnd(CPopupWnd* pWnd);
virtual ~CPopupCombo();
void SetControlSize(CSize nSize)
{ m_CtrlSize = nSize; }
// Generated message map functions
protected:
//{{AFX_MSG(CPopupCombo)
afx_msg void OnDropdown();
afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
//}}AFX_MSG
afx_msg virtual void OnPopup();
DECLARE_MESSAGE_MAP()
CPopupWnd* pPopupWnd;
CSize m_CtrlSize;
};
class CDTXPopupCombo : public CDTXComboBox
{
// Construction
public:
CDTXPopupCombo();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDTXPopupCombo)
//}}AFX_VIRTUAL
// Implementation
public:
void SetPopupWnd(CPopupWnd* pWnd);
virtual ~CDTXPopupCombo();
void SetControlSize(CSize nSize)
{ m_CtrlSize = nSize; }
// Generated message map functions
protected:
//{{AFX_MSG(CDTXPopupCombo)
afx_msg void OnDropdown();
afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
//}}AFX_MSG
afx_msg virtual void OnPopup();
DECLARE_MESSAGE_MAP()
CPopupWnd* pPopupWnd;
CSize m_CtrlSize;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_POPUPCOMBO_H__DAB9CE4E_DE72_477E_BA03_EF83C8D0B6D4__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
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.