FRX SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
CNavBitmapButton.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
20#include <ShlObj.h>
21#include <ShObjIdl.h>
22
23class CDC;
24class CWnd;
25template < typename Param1, typename Param2 > class StrTraitMFC_DLL;
26
28{
29public:
31
32public:
34 int GetCheckable(void);
35 int GetChecked(void);
36 virtual ~CNavBitmapButton(void);
37 void ChangeBitmapColor( HBITMAP__ *,unsigned long,unsigned long, HPALETTE__ *);
38 void SetCheckable(int);
39 void SetChecked(int);
40 void SetTipText(wchar_t const *);
41 wchar_t const * GetTipText(void);
42
43protected:
44 //DECLARE_MESSAGE_MAP()
46 virtual const AFX_MSGMAP* GetMessageMap() const;
47 virtual int OnGetTipText( CStringW &);
48 virtual void DrawButton( CDC &,int,int,int,int,int,int);
49 void OnKillFocus( CWnd *);
50 void OnSetFocus( CWnd *);
51
52private:
53 void ChangeBitmapColorDC( HDC__ *, tagBITMAP *,unsigned long,unsigned long);
54
55};
virtual int OnGetTipText(CStringW &)
virtual ~CNavBitmapButton(void)
virtual void DrawButton(CDC &, int, int, int, int, int, int)
virtual const AFX_MSGMAP * GetMessageMap() const
void OnKillFocus(CWnd *)
static const AFX_MSGMAP *PASCAL GetThisMessageMap()
wchar_t const * GetTipText(void)
void SetChecked(int)
void SetCheckable(int)
int GetChecked(void)
void OnSetFocus(CWnd *)
int GetCheckable(void)
void SetTipText(wchar_t const *)
DECLARE_DYNAMIC(CNavBitmapButton)
void ChangeBitmapColor(HBITMAP__ *, unsigned long, unsigned long, HPALETTE__ *)