⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 instantmessageserver.h

📁 c++系统开发实例精粹内附的80例源代码 环境:windows2000,c++6.0
💻 H
字号:
//////////////////////////////////////////////////////////////////////
// FileFury
// Copyright (c) 2000 Tenebril Incorporated
// All rights reserved.
//
// This source code is governed by the Tenebril open source
// license (http://www.tenebril.com/developers/opensource/license.html)
//
// For more information on this and other open source applications,
// visit the Tenebril OpenSource page:
//       http://www.tenebril.com/developers/opensource
//
//////////////////////////////////////////////////////////////////////

// InstantMessageServer.h: interface for the CInstantMessageServer class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_INSTANTMESSAGESERVER_H__E69298E0_79CD_11D3_B8DD_00600838CD5F__INCLUDED_)
#define AFX_INSTANTMESSAGESERVER_H__E69298E0_79CD_11D3_B8DD_00600838CD5F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

typedef struct
{
	TCHAR tczSenderName[125];
	TCHAR tczMessage[512];
	COLORREF crBack;
	COLORREF crText;
} IMPacketStruct;

class CInstantMessageServer  
{
public:
	static BOOL PASCAL SendMessage(LPCTSTR czDest, LPCTSTR czMessage,
		LPCTSTR czDestName = NULL);
	BOOL Stop(BOOL bWait);
	BOOL Start();
	CInstantMessageServer();
	virtual ~CInstantMessageServer();

private:
	static UINT PASCAL DriveWork(LPVOID *Param);
protected:
	BOOL m_bStayOn;
};

#endif // !defined(AFX_INSTANTMESSAGESERVER_H__E69298E0_79CD_11D3_B8DD_00600838CD5F__INCLUDED_)

⌨️ 快捷键说明

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