Leaked source code of windows server 2003
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.

76 lines
1.8 KiB

  1. /******************************************************************************
  2. Header File: Main Frame.H
  3. This defines the class which handles the application's main window's frame.
  4. It will begin life, at the least, as a standaard MFC App Wizard creation.
  5. Copyright (c) 1997 by Microsoft Corporation. All Rights Reserved.
  6. A Pretty Penny Enterprises Production.
  7. Change History:
  8. 03-04-2997 Bob_Kjelgaard@Prodigy.Net Created it
  9. ******************************************************************************/
  10. // CGPDToolBar is used to add control(s) to the GPD tool bar.
  11. class CGPDToolBar : public CToolBar
  12. {
  13. public:
  14. CEdit ceSearchBox ; // Search text edit box
  15. //CButton cbNext ; // Search next button
  16. //CButton cbPrevious ; // Search previous button
  17. } ;
  18. // Widths of control(s) in CGPDToolBar.
  19. #define GPD_SBOX_WIDTH 170
  20. class CMainFrame : public CMDIFrameWnd {
  21. DECLARE_DYNAMIC(CMainFrame)
  22. public:
  23. CMainFrame();
  24. // Attributes
  25. public:
  26. void GetGPDSearchString(CString& cstext) ;
  27. CGPDToolBar* GetGpdToolBar() { return &m_ctbBuild; } // raid 16573
  28. // Operations
  29. public:
  30. // Overrides
  31. // ClassWizard generated virtual function overrides
  32. //{{AFX_VIRTUAL(CMainFrame)
  33. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  34. //}}AFX_VIRTUAL
  35. // Implementation
  36. public:
  37. virtual ~CMainFrame();
  38. #ifdef _DEBUG
  39. virtual void AssertValid() const;
  40. virtual void Dump(CDumpContext& dc) const;
  41. #endif
  42. protected: // control bar embedded members
  43. afx_msg void OnInitMenu(CMenu* pMenu);
  44. CStatusBar m_wndStatusBar;
  45. CToolBar m_ctbMain;
  46. CGPDToolBar m_ctbBuild;
  47. // Generated message map functions
  48. protected:
  49. //{{AFX_MSG(CMainFrame)
  50. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  51. afx_msg void OnDestroy();
  52. //}}AFX_MSG
  53. DECLARE_MESSAGE_MAP()
  54. };