Path: blob/main/crypto/krb5/src/windows/leash/MainFrm.h
34889 views
// **************************************************************************************1// File: MainFrm.h2// By: Arthur David Leather3// Created: 12/02/984// Copyright @1998 Massachusetts Institute of Technology - All rights reserved.5// Description: H file for MainFrm.cpp. Contains variables and functions6// for Leash7//8// History:9//10// MM/DD/YY Inits Description of Change11// 12/02/98 ADL Original12// **************************************************************************************131415#if !defined(AFX_MAINFRM_H__6F45AD95_561B_11D0_8FCF_00C04FC2A0C2__INCLUDED_)16#define AFX_MAINFRM_H__6F45AD95_561B_11D0_8FCF_00C04FC2A0C2__INCLUDED_1718#if _MSC_VER >= 100019#pragma once20#endif // _MSC_VER >= 10002122#include "LeashFrame.h"23#include "LeashUIApplication.h"2425class CMainFrame : public CLeashFrame26{27private:28int m_winRectLeft;29int m_winRectTop;30int m_winRectRight;31int m_winRectBottom;32BOOL m_bOwnerCreated;33CDialog m_MainFrameOwner;34IUIApplication *pApplication;3536protected: // create from serialization only37// Ribbon bar for the application38CMFCRibbonBar m_wndRibbonBar;39// Our own custom application button we can keep hidden.40CMFCRibbonApplicationButton m_wndApplicationButton;414243CMainFrame();44DECLARE_DYNCREATE(CMainFrame)4546// Attributes47public:48static int m_whatSide;49#ifndef NO_STATUS_BAR50static CMFCStatusBar m_wndStatusBar;51#endif52static CMFCToolBar m_wndToolBar;53static BOOL m_isMinimum;54static BOOL m_isBeingResized;55static CImageList m_imageList;56static CImageList m_disabledImageList;5758// Operations59public:60// Overrides61// ClassWizard generated virtual function overrides62//{{AFX_VIRTUAL(CMainFrame)63public:64virtual BOOL PreCreateWindow(CREATESTRUCT& cs);65virtual void RecalcLayout(BOOL bNotify = TRUE);66virtual BOOL PreTranslateMessage(MSG* pMsg);67protected:68virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);69//}}AFX_VIRTUAL7071// Implementation72public:73virtual ~CMainFrame();74#ifdef _DEBUG75virtual void AssertValid() const;76virtual void Dump(CDumpContext& dc) const;77#endif78BOOL ShowTaskBarButton(BOOL bVisible);7980protected: // control bar embedded members818283// Generated message map functions84protected:85//{{AFX_MSG(CMainFrame)86afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);87afx_msg void OnResetWindowSize();88afx_msg void OnSizing(UINT fwSide, LPRECT pRect);89afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);90afx_msg void OnRibbonResize();91afx_msg void OnClose(void);92//afx_msg void OnContextHelp();93//}}AFX_MSG94DECLARE_MESSAGE_MAP()95};9697/////////////////////////////////////////////////////////////////////////////9899//{{AFX_INSERT_LOCATION}}100// Microsoft Developer Studio will insert additional declarations immediately before the previous line.101102#endif // !defined(AFX_MAINFRM_H__6F45AD95_561B_11D0_8FCF_00C04FC2A0C2__INCLUDED_)103104105