📄 uithread.cpp
字号:
// UIThread.cpp : implementation file
//
#include "stdafx.h"
#include "stock.h"
#include "UIThread.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CUIThread
IMPLEMENT_DYNCREATE(CUIThread, CWinThread)
CUIThread::CUIThread()
{
}
CUIThread::~CUIThread()
{
}
BOOL CUIThread::InitInstance()
{
// TODO: perform and per-thread initialization here
CRect rect;
rect.left = 0;
rect.top = 0;
rect.right = 10;
rect.bottom = 10;
m_pUIFrameWnd = new CUIFrameWnd;
m_pUIFrameWnd->Create(NULL, "UIDataReceive", WS_OVERLAPPEDWINDOW, rect, NULL, 0, NULL);
m_pMainWnd = m_pUIFrameWnd;
return TRUE;
return TRUE;
}
int CUIThread::ExitInstance()
{
// TODO: perform any per-thread cleanup here
delete m_pUIFrameWnd;
return CWinThread::ExitInstance();
}
CUIFrameWnd* CUIThread::GetUIFrameWndPtr()
{
return m_pUIFrameWnd;
}
BEGIN_MESSAGE_MAP(CUIThread, CWinThread)
//{{AFX_MSG_MAP(CUIThread)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CUIThread message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -