📄 mainfrm.h
字号:
// MainFrm.h : CMainFrame 类的接口
//
#pragma once
#include "FundDialog.h"
#include "StockDataList.h"
class CMainFrame : public CFrameWnd
{
protected: // 仅从序列化创建
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
// 属性
public:
BOOL AreFundsVisible(){
return m_bFundsVisible;
}
void SetFundsVisible(bool bSet)
{
m_bFundsVisible=bSet;
if(bSet)
{
m_wndFundDialog.ShowWindow(SW_SHOW);
}
else
{
m_wndFundDialog.ShowWindow(SW_HIDE);
}
}
// 操作
public:
void UpdateFundList(const CStockDataList& pList,CString strCurrentFund=_T(""));
/*void UpdateFundList(const CStockDataList& pList, CString strCurrentFund=_T(""));*/
// 重写
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
// 实现
public:
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected: // 控件条嵌入成员
CStatusBar m_wndStatusBar;
CToolBar m_wndToolBar;
// 生成的消息映射函数
protected:
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
DECLARE_MESSAGE_MAP()
CFundDialog m_wndFundDialog;
bool m_bFundsVisible;
public:
afx_msg void OnViweFund();
afx_msg void OnUpdateViweFund(CCmdUI *pCmdUI);
afx_msg void OnActivateApp(BOOL bActive, DWORD dwThreadID);
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -