📄 mainfrm.h
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__6F7F7ADE_18DC_4F4B_B8EC_3C28FA784E8F__INCLUDED_)
#define AFX_MAINFRM_H__6F7F7ADE_18DC_4F4B_B8EC_3C28FA784E8F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "IAutoCmp.h"
#include "AutoEnumString.h"
#define MAIN_WND_CLASS_NAME "SeesiFrame"
class CIEView;
#include "CJMenuBar.h"
#include "CJMenuBar.h"
#include "CJStatusBar.h"
#include "BBClipboard.h"
class CMainFrame : public CFrameWnd
{
protected: // create from serialization only
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
//}}AFX_VIRTUAL
// Implementation
public:
void SetFontSizeVal(int nVal);
BOOL AddHistory(LPCTSTR lpszURL,LPCTSTR lpszTitle);
void SaveWindowPlace();
void SetWindowPlace();
void SetWindowTextX(LPCTSTR lpszText);
BOOL DeleteCurIEView();
BOOL InitAddress();
CIEView* GetActiveIEView();
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
public: // control bar embedded members
void ButtonDropDown(NMHDR* pNotifyStruct, LRESULT* pResult);
void EnableGoForward(BOOL bEnable);
void EnableGoBack(BOOL bEnable);
CCJStatusBar m_wndStatusBar;
CCJToolBar m_wndToolBar;
CAnimateCtrl m_wndAnimate;
CComboBoxEx m_wndAddress;
CCJFlatTabCtrl m_wndTabCtrl;
CCJReBar m_wndReBar; // global bar containing everything
BOOL m_bActvieNew;
protected:
CFont m_fontAddress;
BOOL m_bShowTitle;
BOOL m_bHidden;
IAutoComplete *m_pAutoCmpAddress;
IEnumString *m_pEnumSting;
CAutoEnumString *m_pAutoEnumString;
BOOL m_bEnableGoBack;
BOOL m_bEnableGoForward;
CString m_strMainWndText;
CBBSystemTray m_wndSysTray;
UINT m_nFontSize;
CStringArray m_astrFavoriteURLs;
CCJMenuBar m_wndMenuBar; // menu bar÷
int BuildFavoritesMenu(LPCTSTR pszPath, int nStartPos, CMenu *pMenu);
CBitmap m_bmBarBm;
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnClose();
afx_msg void OnBack();
afx_msg void OnForward();
afx_msg void OnCut();
afx_msg void OnCopy();
afx_msg void OnPaste();
afx_msg void OnStop();
afx_msg void OnRefresh();
afx_msg void OnHome();
afx_msg void OnSearch();
afx_msg void OnPrintdoc();
afx_msg void OnViewsource();
afx_msg void OnViewfont();
afx_msg void OnViewFontsLargest();
afx_msg void OnUpdateViewFontsLargest(CCmdUI* pCmdUI);
afx_msg void OnViewFontsLarge();
afx_msg void OnUpdateViewFontsLarge(CCmdUI* pCmdUI);
afx_msg void OnViewFontsMedium();
afx_msg void OnUpdateViewFontsMedium(CCmdUI* pCmdUI);
afx_msg void OnViewFontsSmall();
afx_msg void OnUpdateViewFontsSmall(CCmdUI* pCmdUI);
afx_msg void OnViewFontsSmallest();
afx_msg void OnUpdateViewFontsSmallest(CCmdUI* pCmdUI);
afx_msg void OnNewWindow();
afx_msg void OnShowAdrress();
afx_msg void OnUpdateShowAdrress(CCmdUI* pCmdUI);
afx_msg void OnSelectAll();
afx_msg void OnViewFavority();
afx_msg void OnInetOption();
afx_msg void OnAddtoFav();
afx_msg void OnSettingFav();
afx_msg void OnDocSaveAs();
afx_msg void OnEditFind();
afx_msg void OnCloseWindow();
afx_msg void OnCloseAll();
afx_msg void OnShowtitle();
afx_msg void OnUpdateShowtitle(CCmdUI* pCmdUI);
afx_msg void OnShowMainwnd();
afx_msg void OnSetdefaultid();
afx_msg void OnUpdateBack(CCmdUI* pCmdUI);
afx_msg void OnUpdateForward(CCmdUI* pCmdUI);
afx_msg void OnSetActiveNewWnd();
afx_msg void OnUpdateSetActiveNewWnd(CCmdUI* pCmdUI);
afx_msg void OnUpdateSetdefaultid(CCmdUI* pCmdUI);
//}}AFX_MSG
afx_msg LRESULT OnCreateNewIEView(WPARAM wParam,LPARAM lParam);
afx_msg void OnNewAddressEnter();
afx_msg void OnAddressChange();
afx_msg void OnNewAddress();
afx_msg void OnFavorite(UINT nID);
afx_msg void OnDropDown(NMHDR* pNotifyStruct, LRESULT* pResult);
afx_msg LRESULT OnCopyDataFromApp(WPARAM wParam,LPARAM lParam);
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRM_H__6F7F7ADE_18DC_4F4B_B8EC_3C28FA784E8F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -