GuiWorkTab.h
上传用户:wlkj888
上传日期:2022-08-01
资源大小:806k
文件大小:3k
源码类别:

对话框与窗口

开发平台:

Visual C++

  1. /****************************************************************************
  2.  * *  
  3.  * GuiToolKit   *
  4.  *  (MFC extension) *  
  5.  * Created by Francisco Campos G. www.beyondata.com fcampos@beyondata.com *
  6.  *--------------------------------------------------------------------------*    
  7.  * *
  8.  * This program is free software;so you are free to use it any of your *
  9.  * applications (Freeware, Shareware, Commercial),but leave this header *
  10.  * intact. *
  11.  * *
  12.  * These files are provided "as is" without warranty of any kind. *
  13.  * *
  14.  *        GuiToolKit is forever FREE CODE !!!!! *
  15.  * *
  16.  *--------------------------------------------------------------------------*
  17.  * Created by: Francisco Campos G. *
  18.  * Bug Fixes and improvements : (Add your name) *
  19.  * -Francisco Campos *
  20.  * *
  21.  ****************************************************************************/
  22. #if !defined(AFX_GUIWORKTAB_H__A711D725_2268_4750_B58E_5218AD3BC0A5__INCLUDED_)
  23. #define AFX_GUIWORKTAB_H__A711D725_2268_4750_B58E_5218AD3BC0A5__INCLUDED_
  24. #if _MSC_VER > 1000
  25. #pragma once
  26. #endif // _MSC_VER > 1000
  27. #include "GuiTabWnd.h"
  28. #include "GuiDrawlayer.h"
  29. #include "GuiMiniTool.h"
  30. #include "GuiDrawLayer.h" 
  31. //****************************************************************
  32. class GUILIBDLLEXPORT  CGuiWorkTab : public CGuiTabWnd  
  33. {
  34. public:
  35. //***************************************
  36. CGuiWorkTab();
  37. virtual ~CGuiWorkTab();
  38. //***************************************
  39. public:
  40. void  virtual Drawtabs(CDC* dc);
  41. void  OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); 
  42. void  PintaSeparador(CDC* dc);
  43. void  OnSpiNiz();
  44. void  OnSpiNde();
  45. void  SizeScroll();
  46. virtual void StyleDispl(DWORD dwDsp=GUISTYLE_XP)
  47. {m_StyleDisplay=dwDsp;
  48.  SendMessage(WM_NCPAINT);Invalidate(); UpdateWindow();}
  49. protected:
  50. CScrollBar m_spin;
  51. GuiTabbedButton m_toolBtn[2];
  52. CScrollBar m_scroll;
  53. CFont m_cfont;
  54. BOOL m_PresRight;
  55. BOOL m_PresLeft;
  56. int m_deplaza;
  57. CRect m_btndesplaza;
  58. BOOL bIniciaArrastre;
  59. GuiDrawLayer m_wd;
  60. BOOL m_EnableL;
  61. BOOL m_EnableR;
  62. CImageList m_img;
  63. protected:
  64. //{{AFX_MSG(CGuiWorkTab)
  65. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  66. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  67. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  68. afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
  69. afx_msg void OnSysColorChange(); 
  70. afx_msg void OnPaint();
  71. //}}AFX_MSG
  72. DECLARE_MESSAGE_MAP()
  73. public:
  74. afx_msg void OnWindowPosChanging(WINDOWPOS* lpwndpos);
  75. afx_msg void OnSize(UINT nType, int cx, int cy);
  76. };
  77. #endif // !defined(AFX_GUIWORKTAB_H__A711D725_2268_4750_B58E_5218AD3BC0A5__INCLUDED_)