FRX SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
CAdUiThemedControlDraw.h
Go to the documentation of this file.
1#pragma once
2
3//
4// (C) Copyright 2005-2023 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 CAdUiTheme;
20class CDC;
21class CRect;
22template < typename Param1, typename Param2 > class StrTraitMFC_DLL;
23
25{
26public:
27 Gdiplus::Font * GetFont( CAdUiTheme const *, AdUiThemeElement);
28 Gdiplus::Font * GetFont( tagLOGFONTW const &);
30 virtual Gdiplus::RectF MeasureText( CDC *, ATL::CStringT<wchar_t, StrTraitMFC_DLL<wchar_t, ATL::ChTraitsCRT<wchar_t> > > const &,bool, CAdUiTheme *, AdUiThemeElement);
31 virtual Gdiplus::RectF MeasureText( CDC *, ATL::CStringT<wchar_t, StrTraitMFC_DLL<wchar_t, ATL::ChTraitsCRT<wchar_t> > > const &, Gdiplus::StringFormat const &, Gdiplus::Font *);
32 virtual void CreateRoundedCornerRectangle( Gdiplus::Point *, CRect const &);
33 virtual void DrawDropdownArrow( CDC *, CRect const &, Gdiplus::Color const &, Gdiplus::Color const &);
34 virtual void DrawInnerHighlight( CDC *, Gdiplus::Rect const &, Gdiplus::Pen const &);
35 virtual void DrawRoundedCornerRectangle( CDC *, CRect const &, Gdiplus::Color const &);
36 virtual void DrawTextW( CDC *, Gdiplus::RectF const &, ATL::CStringT<wchar_t, StrTraitMFC_DLL<wchar_t, ATL::ChTraitsCRT<wchar_t> > > const &, Gdiplus::StringFormat const &,unsigned long, Gdiplus::Font *);
37 void SetDefaultFormat( Gdiplus::StringFormat &,bool);
38
39protected:
42
43};
AdUiThemeElement
virtual void CreateRoundedCornerRectangle(Gdiplus::Point *, CRect const &)
virtual void DrawRoundedCornerRectangle(CDC *, CRect const &, Gdiplus::Color const &)
void SetDefaultFormat(Gdiplus::StringFormat &, bool)
virtual void DrawInnerHighlight(CDC *, Gdiplus::Rect const &, Gdiplus::Pen const &)
static CAdUiThemedControlDraw * GetInstance(void)
Gdiplus::Font * GetFont(tagLOGFONTW const &)
virtual Gdiplus::RectF MeasureText(CDC *, ATL::CStringT< wchar_t, StrTraitMFC_DLL< wchar_t, ATL::ChTraitsCRT< wchar_t > > > const &, Gdiplus::StringFormat const &, Gdiplus::Font *)
virtual ~CAdUiThemedControlDraw(void)
Gdiplus::Font * GetFont(CAdUiTheme const *, AdUiThemeElement)
virtual void DrawTextW(CDC *, Gdiplus::RectF const &, ATL::CStringT< wchar_t, StrTraitMFC_DLL< wchar_t, ATL::ChTraitsCRT< wchar_t > > > const &, Gdiplus::StringFormat const &, unsigned long, Gdiplus::Font *)
virtual Gdiplus::RectF MeasureText(CDC *, ATL::CStringT< wchar_t, StrTraitMFC_DLL< wchar_t, ATL::ChTraitsCRT< wchar_t > > > const &, bool, CAdUiTheme *, AdUiThemeElement)
virtual void DrawDropdownArrow(CDC *, CRect const &, Gdiplus::Color const &, Gdiplus::Color const &)