[e3d4dd]: PWToolBar.h Maximize Restore History

Download this file

PWToolBar.h    65 lines (52 with data), 2.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
* Copyright (c) 2003-2007 Rony Shapiro <ronys@users.sourceforge.net>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
#pragma once
// CPWToolBar
class CPWToolBar : public CToolBar
{
DECLARE_DYNAMIC(CPWToolBar)
public:
CPWToolBar();
virtual ~CPWToolBar();
void Init(const int NumBits);
void LoadDefaultToolBar(const int toolbarMode);
void CustomizeButtons(CString csButtonNames);
void ChangeImages(const int toolbarMode);
void Reset();
CString GetButtonString();
int GetBrowseURLImageIndex() {return m_iBrowseURL_BM_offset;}
int GetSendEmailImageIndex() {return m_iSendEmail_BM_offset;}
protected:
//{{AFX_MSG(CPWToolBar)
//}}AFX_MSG
afx_msg void OnToolBarGetButtonInfo(NMHDR *pNotifyStruct, LRESULT* pResult);
afx_msg void OnToolBarQueryInsert(NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnToolBarQueryDelete(NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnToolBarQueryInfo(NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg void OnToolBarReset(NMHDR* pNotifyStruct, LRESULT* pResult);
DECLARE_MESSAGE_MAP()
private:
static const CString m_csMainButtons[];
static const UINT m_MainToolBarIDs[];
static const UINT m_MainToolBarClassicBMs[];
static const UINT m_MainToolBarNew8BMs[];
static const UINT m_MainToolBarNew32BMs[];
static const UINT m_OtherIDs[];
static const UINT m_OtherClassicBMs[];
static const UINT m_OtherNew8BMs[];
static const UINT m_OtherNew32BMs[];
CString m_csDefaultButtonString;
TBBUTTON *m_pOriginalTBinfo;
CImageList m_ImageLists[3]; // 1st = Classic; 2nd = New 8; 3rd = New 32;
UINT m_ClassicFlags, m_NewFlags;
int m_iMaxNumButtons, m_iNum_Bitmaps, m_iNumDefaultButtons;
int m_toolbarMode, m_bitmode;
COLORREF m_ClassicBackground, m_NewBackground1, m_NewBackground2;
bool m_bIsDefault;
int m_iBrowseURL_BM_offset, m_iSendEmail_BM_offset;
};