|
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 | |
|---|
| 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 | |
|---|
| 21 | |
|---|
| 22 | class CPiecesBar : public CSizingControlBarG |
|---|
| 23 | { |
|---|
| 24 | public: |
|---|
| 25 | CPiecesBar(); |
|---|
| 26 | |
|---|
| 27 | |
|---|
| 28 | public: |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | public: |
|---|
| 32 | virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult); |
|---|
| 33 | |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | public: |
|---|
| 37 | virtual ~CPiecesBar(); |
|---|
| 38 | |
|---|
| 39 | public: |
|---|
| 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 | |
|---|
| 57 | protected: |
|---|
| 58 | BOOL m_bNoContext; |
|---|
| 59 | CFont m_Font; |
|---|
| 60 | int m_nPreviewHeight; |
|---|
| 61 | void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler); |
|---|
| 62 | |
|---|
| 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 | |
|---|
| 67 | |
|---|
| 68 | afx_msg LONG OnSplitterMoved(UINT lParam, LONG wParam); |
|---|
| 69 | |
|---|
| 70 | DECLARE_MESSAGE_MAP() |
|---|
| 71 | }; |
|---|
| 72 | |
|---|
| 73 | |
|---|
| 74 | |
|---|
| 75 | |
|---|
| 76 | |
|---|
| 77 | |
|---|
| 78 | #endif // !defined(PIECEBAR_H_INCLUDED) |
|---|