popwndthread.cpp

来自「该程序是类似于MSN的即使通信工具」· C++ 代码 · 共 60 行

CPP
60
字号
// PopWndThread.cpp : implementation file
//

#include "stdafx.h"
#include "Netmsg.h"
#include "PopWndThread.h"
#include "TaskBarMsgWnd.h"
#include "ContactView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

//Little thingo that pops up from the task bar

IMPLEMENT_DYNCREATE(CPopWndThread, CWinThread)

CPopWndThread::CPopWndThread(CString Text)
{
	csText = Text;
}

CPopWndThread::CPopWndThread()
{
	csText = _T("");
}

CPopWndThread::~CPopWndThread()
{
}

BOOL CPopWndThread::InitInstance()
{
	m_pMainWnd = CTaskBarMsgWnd::CreateObject(csText, 150,
	115, 5000, 1, CRect(1, 10, 128, 93), RGB(255, 255, 255),
	RGB(0, 0, 0), View, Contact, pLast);

	pMsgWnd = (CTaskBarMsgWnd *) m_pMainWnd;
	pMsgWnd->PopMsg();
	GetApp()->View->LastPopup = pMsgWnd;
	return TRUE;
}

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

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

/////////////////////////////////////////////////////////////////////////////
// CPopWndThread message handlers

⌨️ 快捷键说明

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