📄 mainfrm.h
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__07CE3988_E2E9_11D4_B45A_00104B1269BD__INCLUDED_)
#define AFX_MAINFRM_H__07CE3988_E2E9_11D4_B45A_00104B1269BD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define CFrameWnd CCJFrameWnd
#include "FullScreenBar.h"
#include "SearchThread.h"
#include "CategoryBar.h"
#include "SplitterWndEx.h"
#include "ContainView.h"
#define SEARCH_TIME_DEF 60
#define DEF_INGORE_NUM 150
static CString strFolder[17] =
{
_T("国内财经"),_T("国际财经"),_T("海外财经"),_T("大盘分析"),
_T("个股点评"),_T("个股新闻"),_T("分析报告"),_T("名家评股"),
_T("热点板块"),_T("后市预测"),_T("焦点透视"),_T("市场传闻"),
_T("市场研究"),_T("上市公司"),_T("投资实战"),_T("环球股市"),
_T("基金评论")
};
class CMainFrame : public CFrameWnd
{
protected: // create from serialization only
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
// Attributes
public:
BOOL m_bHasPost,m_bRebarImg,m_IsThreadRunning,
m_bShowSplash,m_bShowTip,m_UseProxy,m_IsIngoreLong;
CString m_strRebarImg,m_Proxy,m_Port,m_strKey;
int m_TimeOut,m_iCurItem;
long m_MaxThreadCount,m_IngoreLegth;
CImageList m_LargeFinance,m_SmallFinance;
CTime m_Date;
// Operations
public:
void SetPaneText(int iPane, LPCTSTR lpszStr);
BOOL CanExport();
CContainView* GetContainView();
CStockReferView* GetStockReferView();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void ActivateFrame(int nCmdShow = -1);
protected:
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected: // control bar embedded members
CStatusBar m_wndStatusBar;
CToolBar m_wndToolBar;
CFullScreenBar* m_pwndFullBar;
CCJReBar m_wndReBar;
CCategoryBar m_wndCategoryBar;
CSplitterWndEx m_wndSplitter;
CAnimateCtrl m_wndAnimate;
CDaoDatabase m_StockDb;
CRect rcWndPos,m_rSmallBtn,m_rBigBtn,m_mainRect;
BOOL m_bFirst,m_bFullScreen,m_bMax,m_bStatusBarWasVisible,
m_bCategoryBar;
CSize m_sizeButton;
CString strFolderPosOne,strFolderPosTwo,strFolderPosThree,
m_ToBeURL;
int m_iCurSel,m_ThreadCount;
CTypedPtrList<CObList,CSearchThread*> m_threadList;
CRITICAL_SECTION m_CritSect;
long m_lMaxThreads;
long m_lCurThreads;
long m_NewsCount;
// Generated message map functions
protected:
void KillThreads();
void AfterStop(BOOL bEndProgram = FALSE);
BOOL AnotherSearch();
CString GetIndexContent(LPCTSTR lpszIndex);
BOOL BeginStockSearch();
BOOL OpenStockdatDb();
int GetCurSelVal(int m_CurSelFolder);
void BeforeSearch();
BOOL InitCategoryBar();
BOOL CreateCategoryBar();
void SaveProfileSet();
void LoadProfileSet();
void SetBarBackImage(LPCTSTR lpszBmpName = NULL);
BOOL CreateStanderBar();
void FullScreenOn();
void FullScreenOff();
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnViewFullscreen();
afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
afx_msg void OnViewBack();
afx_msg void OnClose();
afx_msg void OnViewCategory();
afx_msg void OnUpdateViewCategory(CCmdUI* pCmdUI);
afx_msg void OnHelpHome();
afx_msg void OnViewList();
afx_msg void OnUpdateViewList(CCmdUI* pCmdUI);
afx_msg void OnFileExport();
afx_msg void OnEditProperty();
afx_msg void OnViewProperty();
afx_msg void OnHelpReg();
afx_msg void OnUpdateFileExport(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditDelete(CCmdUI* pCmdUI);
afx_msg void OnUpdateViewProperty(CCmdUI* pCmdUI);
afx_msg void OnUpdateHelpUpdate(CCmdUI* pCmdUI);
afx_msg void OnUpdateHelpReg(CCmdUI* pCmdUI);
afx_msg void OnEditDelete();
afx_msg void OnUpdateFilePrint(CCmdUI* pCmdUI);
afx_msg void OnUpdateFilePrintPreview(CCmdUI* pCmdUI);
afx_msg void OnSearchBegin();
afx_msg void OnUpdateSearchBegin(CCmdUI* pCmdUI);
afx_msg void OnSearchStop();
afx_msg void OnUpdateSearchStop(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditCopys(CCmdUI* pCmdUI);
afx_msg void OnEditCopys();
afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu);
afx_msg void OnHelpMailto();
afx_msg void OnHelpIndex();
afx_msg void OnHelpUpdate();
//}}AFX_MSG
afx_msg long OnCategorybarNotify(WPARAM wParam, LPARAM lParam);
LRESULT OnThreadDone(WPARAM wParam,LPARAM lParam);
LRESULT OnServerStatus(WPARAM wParam,LPARAM lParam);
LRESULT OnSendBody(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__07CE3988_E2E9_11D4_B45A_00104B1269BD__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -