|
#if !defined(AFX_WNDJOBS_H__6AE715EA_69E6_4C3A_953C_42319E05E780__INCLUDED_)
#define AFX_WNDJOBS_H__6AE715EA_69E6_4C3A_953C_42319E05E780__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// WndJobs.h : Header-Datei
//
class CJobItem: public CObject
{
public:
void ParseToolbar(CToolBar *pToolbar);
BOOL HitTest(CPoint point);
CJobItem(CString strName, UINT uiCommand, int nIconIndex = -1);
void OnDraw(CDC* pDC, CRect rcItem, CImageList* pImageList);
UINT m_uiItemState;
CString m_strName;
int m_nIconIndex;
UINT m_uiCommand;
protected:
CRect m_rcItem;
};
class CJobGroup: public CObject
{
public:
static COLORREF MakeXPColor(COLORREF cl, double factor = 0.85);
CJobGroup(CString strName, CImageList* pList);
~CJobGroup();
void OnDraw(CDC* pDC, CRect rcItem);
public:
CJobItem* HitTest(CPoint point);
void ParseToolbar(CToolBar* pToolbar);
void CalcHeight();
void RemoveAllItems();
int AddItem(CJobItem* pItem);
CImageList* m_pImageList;
CString m_strName;
int m_nHeight;
protected:
CTypedPtrList<CObList, CJobItem*> m_lstItems;
};
/////////////////////////////////////////////////////////////////////////////
// Fenster CWndJobs
class CWndJobs : public CWnd
{
// Konstruktion
public:
CWndJobs();
// Attribute
public:
// Operationen
public:
// �berschreibungen
// Vom Klassen-Assistenten generierte virtuelle Funktions�berschreibungen
//{{AFX_VIRTUAL(CWndJobs)
//}}AFX_VIRTUAL
// Implementierung
public:
BOOL AddItem(int nGroup, CString strItem, UINT uiCommand);
BOOL SetToolbarImages(UINT uiToolbar);
BOOL InitFromMenu(UINT id);
BOOL ExpandGroup(int nGroup, BOOL bExpand=TRUE);
BOOL ChangeGroupName(int nGroup, CString strName);
CString& GetGroupName(int nGroup);
BOOL RemoveGroup(int nGroup);
int AddGroup(CString strName);
void RemoveAll();
virtual ~CWndJobs();
// Generierte Nachrichtenzuordnungsfunktionen
protected:
CImageList m_lstImages;
HCURSOR m_hHand;
CJobItem* m_pLastHit;
CJobGroup* GetGroupByNumber(int nPos);
void InvalidateIfPossible();
//{{AFX_MSG(CWndJobs)
afx_msg void OnPaint();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
CTypedPtrList<CObList, CJobGroup*> m_lstGroups;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ f�gt unmittelbar vor der vorhergehenden Zeile zus�tzliche Deklarationen ein.
#endif // AFX_WNDJOBS_H__6AE715EA_69E6_4C3A_953C_42319E05E780__INCLUDED_
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.