Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
2.2 KiB

  1. // MainFrm.h : interface of the CMainFrame class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_MAINFRM_H__48214BAA_E863_11D2_ABDA_009027226441__INCLUDED_)
  5. #define AFX_MAINFRM_H__48214BAA_E863_11D2_ABDA_009027226441__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "ProgressBar.h"
  10. //
  11. // Transfer Tool bar
  12. //
  13. class CTransferToolBar : public CToolBar
  14. {
  15. public:
  16. CComboBox m_ClipboardFormatComboBox;
  17. };
  18. class CMainFrame : public CFrameWnd
  19. {
  20. protected: // create from serialization only
  21. CMainFrame();
  22. DECLARE_DYNCREATE(CMainFrame)
  23. // Attributes
  24. public:
  25. // Operations
  26. public:
  27. void DockControlBarLeftOf(CToolBar* Bar, CToolBar* LeftOf);
  28. BOOL IsToolBarVisible(DWORD ToolBarID);
  29. BOOL HideToolBarButton(DWORD ToolBarID, DWORD ButtonID, BOOL bEnable = TRUE);
  30. void DisplayImage(PBYTE pDIB);
  31. void DestroyProgressCtrl();
  32. void SetProgressText(LPCTSTR strText);
  33. void UpdateProgress(int iProgress);
  34. void InitializeProgressCtrl(LPCTSTR strMessage);
  35. CProgressBar* m_pProgressBar;
  36. CWnd* m_pMessageBar;
  37. // Overrides
  38. // ClassWizard generated virtual function overrides
  39. //{{AFX_VIRTUAL(CMainFrame)
  40. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  41. //}}AFX_VIRTUAL
  42. // Implementation
  43. public:
  44. void ActivateSizing(BOOL bSizeON);
  45. void ShowToolBar(int ToolBarID,BOOL bShow);
  46. virtual ~CMainFrame();
  47. #ifdef _DEBUG
  48. virtual void AssertValid() const;
  49. virtual void Dump(CDumpContext& dc) const;
  50. #endif
  51. protected: // control bar embedded members
  52. CStatusBar m_wndStatusBar;
  53. CToolBar m_wndToolBar;
  54. CToolBar m_wndTransferToolBar;
  55. int m_oldcx;
  56. int m_oldcy;
  57. int m_MinWidth;
  58. int m_MinHeight;
  59. BOOL m_bSizeON;
  60. // Generated message map functions
  61. protected:
  62. //{{AFX_MSG(CMainFrame)
  63. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  64. afx_msg void OnSize(UINT nType, int cx, int cy);
  65. //}}AFX_MSG
  66. DECLARE_MESSAGE_MAP()
  67. };
  68. /////////////////////////////////////////////////////////////////////////////
  69. //{{AFX_INSERT_LOCATION}}
  70. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  71. #endif // !defined(AFX_MAINFRM_H__48214BAA_E863_11D2_ABDA_009027226441__INCLUDED_)