FRX SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
CAdUiComboBox.h
Go to the documentation of this file.
1#pragma once
2
3//
4// (C) Copyright 2005-2024 by Graebert GmbH.
5//
6// Permission to use, copy, modify, and distribute this software in
7// object code form for any purpose and without fee is hereby granted,
8// provided that the above copyright notice appears in all copies and
9// that both that copyright notice and the limited warranty and
10// restricted rights notice below appear in all supporting
11// documentation.
12//
13// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
14// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
15// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
16// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
17// UNINTERRUPTED OR ERROR FREE.
18
19#include <afxwin.h>
20#include "Global Enums.h"
21
23class CAdUiEdit;
24class CAdUiListBox;
25class CAdUiTextTip;
26class CDC;
27class CPoint;
28class CRect;
29class CWnd;
30class CAdUiTheme;
32template < typename Param1, typename Param2 > class StrTraitMFC_DLL;
33
34class ARX_API CAdUiComboBox : public CComboBox
35{
36public:
38
39public:
40 bool IsThemed(void)const;
41 CAdUiTheme * GetTheme(void)const;
42 virtual int OnChildNotify(unsigned int,WPARAM, LPARAM, LRESULT *);
44 void SetIsThemed(bool);
50 CWnd * GetAdUiParent(void);
51 int IsOwnerDraw(void);
52 int IsStatic(void);
53 int IsStyleMaskSet(unsigned long);
54 int SetToolTipText( CStringW const &);
55 static bool __cdecl IsInEdit(unsigned int);
56 static bool __cdecl IsVistaTheme(void);
57 unsigned long GetStyleMask(void);
58 virtual ~CAdUiComboBox(void);
59 virtual int Create(unsigned long, tagRECT const &, CWnd *,unsigned int);
60 virtual int OnChildNotify(unsigned int,unsigned int,long,long* );
61 virtual void DrawItem( tagDRAWITEMSTRUCT *);
62 virtual void GetContentExtent(wchar_t const *,int &,int &);
63 void GetLBString(int, CStringW &);
64 void GetTextExtent(wchar_t const *,int &,int &);
65 void SetAdUiParent( CWnd *);
66 void SetEditBox( CAdUiEdit *,int);
68 void SetStyleMask(unsigned long);
69
70protected:
72 long OnGetToolTipText(unsigned int,long);
73 DECLARE_MESSAGE_MAP()
74 HBRUSH__ * OnCtlColor( CDC *, CWnd *,unsigned int);
76 virtual ADUI_REPLY OnGetTipSupport( CPoint &);
77 virtual int OnDrawTipText( CAdUiDrawTipText &);
78 virtual int OnGetTipRect( CRect &);
79 virtual int OnGetTipText(CString&);
80 virtual int OnHitTipRect( CPoint &);
81 LRESULT WindowProc( UINT, WPARAM, LPARAM ) override;
82 virtual void OnDrawTip( CDC &);
83 void OnMouseMove(unsigned int, CPoint);
84 void OnPaint(void);
85 virtual void MeasureItem( LPMEASUREITEMSTRUCT );
86 void PreSubclassWindow();
87 void OnDestroy(void);
88
89 CWnd *m_aduiParent;
90
91 CAdUiTextTip *m_pTextTip;
92 CAdUiListBox *m_pComboLBox;
93 CAdUiEdit *m_pComboEBox;
94
95 bool m_bAutoDeleteEBox;
96 bool m_bAutoDeleteLBox;
97
98};
afx_msg LRESULT OnAdUiMessage(WPARAM, LPARAM)
void SetAdUiParent(CWnd *)
virtual ~CAdUiComboBox(void)
int SetToolTipText(CStringW const &)
void SetEditBox(CAdUiEdit *, int)
virtual int OnChildNotify(unsigned int, WPARAM, LPARAM, LRESULT *)
CWnd * GetAdUiParent(void)
CAdUiTheme * GetTheme(void) const
void SetTheme(CAdUiTheme *)
bool IsThemed(void) const
void SetDraw(CAdUiComboBoxDraw *)
DECLARE_DYNAMIC(CAdUiComboBox)
unsigned long GetStyleMask(void)
void SetListBox(CAdUiListBox *, int)
int IsStatic(void)
virtual void DrawItem(tagDRAWITEMSTRUCT *)
int IsStyleMaskSet(unsigned long)
virtual void GetContentExtent(wchar_t const *, int &, int &)
CStringW GetToolTipText(void) const
long OnGetToolTipText(unsigned int, long)
static bool __cdecl IsInEdit(unsigned int)
virtual int OnChildNotify(unsigned int, unsigned int, long, long *)
void GetTextExtent(wchar_t const *, int &, int &)
void GetLBString(int, CStringW &)
static bool __cdecl IsVistaTheme(void)
void SetIsThemed(bool)
int IsOwnerDraw(void)
virtual int Create(unsigned long, tagRECT const &, CWnd *, unsigned int)
CAdUiEdit * GetEditBox(void)
void SetStyleMask(unsigned long)
CAdUiComboBox(void)
CAdUiListBox * GetListBox(void)