FRX SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
CAdUiGroupCtrl.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
19class CAdToolTipCtrl;
20class CAdUiTheme;
21class CBitmap;
22class CDC;
23class CFont;
24class CPoint;
25class CRect;
26class CWnd;
27template < typename Param1, typename Param2 > class StrTraitMFC_DLL;
28
29class ARX_API CAdUiGroupCtrl : public CStatic
30{
31public:
33
34protected:
36
37public:
38 bool UseDialogTheme(void)const;
39 CAdUiTheme * GetTheme(void)const;
40 virtual bool AddWnd( CWnd *,wchar_t const *,wchar_t const *, CBitmap *);
41 virtual bool AddWnd( CWnd *,wchar_t const *,wchar_t const *,wchar_t const *);
44 bool GetActive(void);
46 bool GetMinimized(void)const ;
48 int GetHeaderHeight(void);
49 int GetSelIndex(void);
50 unsigned long GetStyle(void);
51 virtual ~CAdUiGroupCtrl(void);
52 virtual bool AddBmpBtnToHeader( CBitmap *,void (__cdecl*)( CWnd *),unsigned long &,wchar_t const *);
53 virtual bool AddBmpBtnToHeader(wchar_t const *,void (__cdecl*)( CWnd *),unsigned long &,wchar_t const *);
54 virtual bool AddWnd( CWnd *,wchar_t const *, CBitmap * = nullptr);
55 virtual bool AddWnd( CWnd *,wchar_t const *,wchar_t const *);
56 virtual bool RemoveBmpBtnFromHeader(unsigned long);
57 virtual bool ShowWnd( CWnd *);
58 virtual void ModGroupStyle(unsigned long,unsigned long);
59 virtual void SetFont( CFont *);
60 virtual void SetFont( CFont *,int);
61 virtual void SetMinimized(bool);
62 virtual void SetTheme( CAdUiTheme *);
63 void SetActive(bool);
64 void SetHeaderHeight(int);
66 void SetSelIndex(int);
67 void SetStyle(unsigned long);
68 void SetTitle(wchar_t const *);
69
70protected:
71 static struct tagLOGFONTW & font(void);
76 DECLARE_MESSAGE_MAP()
77 HBRUSH__ * OnCtlColor( CDC *, CWnd *,unsigned int);
78 virtual int PreTranslateMessage( tagMSG *);
79 virtual void DeselectGroupHeader(void);
80 virtual void DrawGroupContent( CDC *);
81 virtual void DrawGroupHeader( CDC *);
82 void DrawHeaderBorder( CDC *, CRect &);
83 void OnChevronClicked(void);
84 void OnKillFocus( CWnd *);
85 void OnNcCalcSize(int, tagNCCALCSIZE_PARAMS *);
86 void OnNcLButtonDblClk(unsigned int, CPoint);
87 void OnNcLButtonDown(unsigned int, CPoint);
88 void OnNcPaint(void);
89 void OnPaint(void);
90 void OnSetFocus( CWnd *);
91 void OnSize(unsigned int,int,int);
92};
#define ARX_API_STATIC
Definition FxARXAPI.h:25
long OnNcHitTest(CPoint)
int OnEraseBkgnd(CDC *)
virtual void SetFont(CFont *, int)
static ARX_API_STATIC tagLOGFONTW m_lf
int GetSelIndex(void)
void SetActive(bool)
virtual bool AddWnd(CWnd *, wchar_t const *, wchar_t const *, CBitmap *)
virtual void SetTheme(CAdUiTheme *)
virtual bool ShowWnd(CWnd *)
CAdUiTheme * GetTheme(void) const
virtual void ModGroupStyle(unsigned long, unsigned long)
void SetHideGroupHeader(bool)
DECLARE_DYNAMIC(CAdUiGroupCtrl)
int GetHeaderHeight(void)
virtual bool AddWnd(CWnd *, wchar_t const *, wchar_t const *)
virtual void SetFont(CFont *)
virtual bool RemoveBmpBtnFromHeader(unsigned long)
static CAdToolTipCtrl *__cdecl GetToolTipControl(void)
bool GetMinimized(void) const
void SetSelIndex(int)
virtual bool AddWnd(CWnd *, wchar_t const *, wchar_t const *, wchar_t const *)
void SetTitle(wchar_t const *)
virtual bool AddWnd(CWnd *, wchar_t const *, CBitmap *=nullptr)
bool GetActive(void)
void SetStyle(unsigned long)
void SetUseDialogTheme(bool)
CStringW GetTitle(void)
void SetHeaderHeight(int)
unsigned long GetStyle(void)
static struct tagLOGFONTW & font(void)
bool GetHideGroupHeader(void)
virtual void SetMinimized(bool)
CAdUiGroupCtrl(void)
virtual bool AddBmpBtnToHeader(wchar_t const *, void(__cdecl *)(CWnd *), unsigned long &, wchar_t const *)
virtual ~CAdUiGroupCtrl(void)
virtual bool AddBmpBtnToHeader(CBitmap *, void(__cdecl *)(CWnd *), unsigned long &, wchar_t const *)
int OnCreate(tagCREATESTRUCTW *)
bool UseDialogTheme(void) const