📄 mythread.cpp
字号:
// Mythread.cpp : implementation file
//
#include "stdafx.h"
#include "st6.h"
#include "Mythread.h"
// Mythread
IMPLEMENT_DYNCREATE(Mythread, CWinThread)
Mythread::Mythread()
{
//设置自动删除
m_bAutoDelete = TRUE;
}
Mythread::~Mythread()
{
}
BOOL Mythread::InitInstance()
{
// TODO: perform and per-thread initialization here
CWnd* pWnd = new CWnd();
//pWnd->CreateEx(0,
//AfxRegisterWndClass( CS_HREDRAW|CS_VREDRAW),
//(LPCTSTR)("gui thread window"),
//WS_OVERLAPPEDWINDOW|WS_VISIBLE,
//CRect(0,0,100,100),
//NULL,
//0);
m_pMainWnd=pWnd;
return (m_pMainWnd!=FALSE);
//return TRUE;
}
int Mythread::ExitInstance()
{
// TODO: perform any per-thread cleanup here
TRACE("gui thread exit\n");
return CWinThread::ExitInstance();
}
/*
void Mythread::CGUIThread()
{
//设置自动删除
m_bAutoDelete = TRUE;
}
*/
BEGIN_MESSAGE_MAP(Mythread, CWinThread)
END_MESSAGE_MAP()
// Mythread message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -