bookthread.cpp

来自「此程序用到了,ADO连接ACCESS数据库,切分窗口,以及不同视图之间进行通信.」· C++ 代码 · 共 63 行

CPP
63
字号
// BookThread.cpp : implementation file
//

#include "stdafx.h"
#include "ChooseBookTool.h"
#include "BookThread.h"

#include "TabPageView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CBookThread

IMPLEMENT_DYNCREATE(CBookThread, CWinThread)

CBookThread::CBookThread(void* hParent)
:m_pParentDlg(hParent)
{

}

CBookThread::CBookThread()
{
}

CBookThread::~CBookThread()
{
}

BOOL CBookThread::InitInstance()
{
	// TODO:  perform and per-thread initialization here
	return TRUE;
}

int CBookThread::ExitInstance()
{
	// TODO:  perform any per-thread cleanup here
	return CWinThread::ExitInstance();
}

BEGIN_MESSAGE_MAP(CBookThread, CWinThread)
	//{{AFX_MSG_MAP(CBookThread)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CBookThread message handlers

int CBookThread::Run() 
{
	// TODO: Add your specialized code here and/or call the base class
	CTabPageView* m_pView;
	m_pView = (CTabPageView*)m_pParentDlg;
	m_pView->AddRecordToList(m_pView->strItemDate);
	return CWinThread::Run();
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?