?? funddialog.cpp
字號:
// FundDialog.cpp : 實現(xiàn)文件
//
#include "stdafx.h"
#include "STU3901070115.h"
#include "FundDialog.h"
#include "MainFrm.h"
#include "STU3901070115Doc.h"
// CFundDialog 對話框
IMPLEMENT_DYNAMIC(CFundDialog, CDialog)
CFundDialog::CFundDialog(CWnd* pParent /*=NULL*/)
: CDialog(CFundDialog::IDD, pParent)
{
}
CFundDialog::~CFundDialog()
{
}
void CFundDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_FUNDLIST, m_ListBox);
}
BEGIN_MESSAGE_MAP(CFundDialog, CDialog)
ON_LBN_SELCHANGE(IDC_FUNDLIST, &CFundDialog::OnLbnSelchangeFundlist)
END_MESSAGE_MAP()
// CFundDialog 消息處理程序
void CFundDialog::OnLbnSelchangeFundlist()
{
CMainFrame * pWnd =
dynamic_cast< CMainFrame * > (AfxGetMainWnd());
ASSERT_VALID( pWnd );
CSTU3901070115Doc * pDoc =
dynamic_cast< CSTU3901070115Doc * >( pWnd->GetActiveDocument());
ASSERT_VALID( pDoc );
CString strCurFund;
int sel = m_ListBox.GetCurSel();
if( sel == LB_ERR ) sel = 0;
m_ListBox.GetText( sel, strCurFund );
pDoc->SetCurrentFund( strCurFund );
pDoc->UpdateAllViews( NULL );
pDoc->SetModifiedFlag(true);
// TODO: 在此添加控件通知處理程序代碼
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -