home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 217 / DPCS0306DVD.ISO / Toolkit / Internet / FileZilla / Server / FileZilla_Server-0.9.11.exe / source / interface / StatusCtrl.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-10-28  |  2.8 KB  |  108 lines

  1. #if !defined(AFX_STATUSCTRL_H__CBCF375F_27B2_4A35_B7CE_BD0893925945__INCLUDED_)
  2. #define AFX_STATUSCTRL_H__CBCF375F_27B2_4A35_B7CE_BD0893925945__INCLUDED_
  3.  
  4. #if _MSC_VER > 1000
  5. #pragma once
  6. #endif // _MSC_VER > 1000
  7. // StatusCtrl.h : Header-Datei
  8. //
  9.  
  10. // -----------------------------------------------------------------
  11. // Colour Codes:
  12. // -----------------------------------------------------------------
  13.  
  14.  
  15. #define COLOUR_WHITE        0
  16. #define COLOUR_BLACK        1
  17. #define COLOUR_BLUE            2
  18. #define COLOUR_GREEN        3
  19. #define COLOUR_LIGHTRED        4
  20. #define COLOUR_BROWN        5
  21. #define COLOUR_PURPLE        6
  22. #define COLOUR_ORANGE        7
  23. #define COLOUR_YELLOW        8
  24. #define COLOUR_LIGHTGREEN    9
  25. #define COLOUR_CYAN            10
  26. #define COLOUR_LIGHTCYAN    11
  27. #define COLOUR_LIGHTBLUE    12
  28. #define COLOUR_PINK            13
  29. #define COLOUR_GREY            14
  30. #define COLOUR_LIGHTGREY    15
  31.  
  32. /////////////////////////////////////////////////////////////////////////////
  33. // Fenster CStatusCtrl 
  34.  
  35. class CStatusView;
  36. class CStatusCtrl : public CRichEditCtrl
  37. {
  38.     friend class CStatusView;
  39.  
  40. public:
  41.     CStatusCtrl();
  42.     virtual ~CStatusCtrl();
  43.  
  44.     void ShowStatus(char *status, int nType);
  45.     void Run();
  46.  
  47. //    virtual BOOL Create( DWORD in_dwStyle, const RECT& in_rcRect, 
  48. //                         CWnd* in_pParentWnd, UINT in_nID );
  49.  
  50.     // Generierte Nachrichtenzuordnungsfunktionen
  51. protected:
  52.  
  53.     static DWORD __stdcall CStatusCtrl::RichEditStreamInCallback(DWORD_PTR dwCookie, LPBYTE pbBuff, LONG cb, LONG *pcb);
  54.  
  55.     struct t_buffer
  56.     {
  57.         char *status;
  58.         int pos;
  59.         int type;
  60.     };
  61.  
  62.     std::list<t_buffer> m_statusBuffer;
  63.     int m_headerPos;
  64.  
  65.     BOOL m_bEmpty;
  66.     UINT_PTR m_nTimerID;
  67.     int m_runTimer;
  68.     int m_nMoveToBottom;
  69.  
  70.     BOOL m_doPopupCursor;
  71.     const static COLORREF m_ColTable[16]; // Colour Table
  72.  
  73.     CString m_RTFHeader;
  74.  
  75.     //{{AFX_MSG(CStatusCtrl)
  76.     afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  77.     afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  78.     afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
  79.     afx_msg void OnOutputcontextClearall();
  80.     afx_msg void OnOutputcontextCopytoclipboard();
  81.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  82.     afx_msg void OnTimer(UINT_PTR nIDEvent);
  83.     afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
  84.     afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
  85.     //}}AFX_MSG
  86.  
  87.     DECLARE_MESSAGE_MAP()
  88. };
  89.  
  90. /*class _AFX_RICHEDITEX_STATE
  91. {
  92. public:
  93.     _AFX_RICHEDITEX_STATE();
  94.     virtual ~_AFX_RICHEDITEX_STATE();
  95.  
  96.     HINSTANCE m_hInstRichEdit20 ;
  97. };
  98.  
  99. BOOL PASCAL AfxInitRichEditEx();
  100. */
  101.  
  102. /////////////////////////////////////////////////////////////////////////////
  103.  
  104. //{{AFX_INSERT_LOCATION}}
  105. // Microsoft Visual C++ fⁿgt unmittelbar vor der vorhergehenden Zeile zusΣtzliche Deklarationen ein.
  106.  
  107. #endif // AFX_STATUSCTRL_H__CBCF375F_27B2_4A35_B7CE_BD0893925945__INCLUDED_
  108.