mythread.cpp
来自「自已做的简单的库存管理软件。包含员工信息管理等」· C++ 代码 · 共 67 行
CPP
67 行
// 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 + =
减小字号Ctrl + -
显示快捷键?