root / trunk / win / Piecebar.h

Revision 723, 1.9 kB (checked in by Leo, 7 months ago)

Rewrote messaging system.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1// piecebar.h : header file
2//
3/////////////////////////////////////////////////////////////////////////
4
5#if !defined(PIECEBAR_H_INCLUDED)
6#define PIECEBAR_H_INCLUDED
7
8#if _MSC_VER >= 1000
9#pragma once
10#endif // _MSC_VER >= 1000
11
12#include "ColorLst.h"
13#include "PieceCmb.h"
14#include "PiecePrv.h"
15#include "Splitter.h"
16#include "sizecbar.h"
17#include "scbarg.h"
18
19/////////////////////////////////////////////////////////////////////////
20// CPiecesBar control bar
21
22class CPiecesBar : public CSizingControlBarG
23{
24public:
25    CPiecesBar();
26
27// Overrides
28public:
29    // ClassWizard generated virtual function overrides
30    //{{AFX_VIRTUAL(CPiecesBar)
31    public:
32    virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
33    //}}AFX_VIRTUAL
34
35// Implementation
36public:
37    virtual ~CPiecesBar();
38
39public:
40    BOOL m_bSubParts;
41    BOOL m_bNumbers;
42    CColorList    m_wndColorsList;
43    CPiecesCombo  m_wndPiecesCombo;
44    CPiecePreview m_wndPiecePreview;
45    CySplitterWnd m_wndSplitter;
46
47    CTreeCtrl m_PiecesTree;
48
49    void UpdatePiecesTreeSearch();
50    void UpdatePiecesTreeModels();
51    void UpdatePiecesTree();
52    void UpdatePiecesTree(const char* OldCategory, const char* NewCategory);
53    void SelectPiece(const char* Category, PieceInfo* Info);
54    void RefreshPiecesTree();
55
56// Generated message map functions
57protected:
58    BOOL m_bNoContext;
59    CFont m_Font;
60    int m_nPreviewHeight;
61    void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler);
62    //{{AFX_MSG(CPiecesBar)
63    afx_msg void OnSize(UINT nType, int cx, int cy);
64    afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
65    afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
66    //}}AFX_MSG
67
68    afx_msg LONG OnSplitterMoved(UINT lParam, LONG wParam);
69
70    DECLARE_MESSAGE_MAP()
71};
72
73/////////////////////////////////////////////////////////////////////////
74
75//{{AFX_INSERT_LOCATION}}
76// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
77
78#endif // !defined(PIECEBAR_H_INCLUDED)
Note: See TracBrowser for help on using the browser.