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

📄 oscar.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
//
//////////////////////////////////////////////////////////////////////

// Oscar.h : main header file for the OSCAR application
//

#if !defined(AFX_OSCAR_H__2DF0D445_549E_11D3_B8DB_00600838CD5F__INCLUDED_)
#define AFX_OSCAR_H__2DF0D445_549E_11D3_B8DB_00600838CD5F__INCLUDED_

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

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"       // main symbols
#include "NFSServer.h"
#include "SearchServer.h"
#include "TransferServer.h"
#include "SettingsArchive.h"

#include "SystemIconLibrary.h"
#include "AwareNetClass.h"	// Added by ClassView
#include "InstanceCheck.h"	// Added by ClassView
#include "InstantMessageServer.h"	// Added by ClassView

// Forward references.
class CFriendsListFrame;
class CDirectoryListFrame;
class CTransferAgentFrame;
class CInstantMessengerFrame;
class CNetworkMonitorFrame;

/////////////////////////////////////////////////////////////////////////////
// COscarApp:
// See Oscar.cpp for the implementation of this class
//

#define SFI_CLOSED                   0
#define SFI_LARGE                    1
#define SFI_OPEN                     2      // Has to be last; some use only
                                            // the others.

class COscarApp : public CWinApp
{
public:
	COscarApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(COscarApp)
	public:
	virtual BOOL InitInstance();
	virtual int  ExitInstance();
	//}}AFX_VIRTUAL

// Implementation

private:
	CInstantMessageServer *m_pIMServer;
	CInstanceCheck m_cInstanceCheck;
	CSearchServer *m_pSearchServer;
	CTransferServer *m_pTransferServer;
	UINT m_nNumNewDocs;
	CSettingsArchive m_cArchive;
	CNFSServer *m_pNFSServer;

public:
	BOOL SendInstantMessage(LPCTSTR czRecipient = NULL, LPCTSTR czIP = NULL);
	BOOL ShowInstantMessenger();
	BOOL ShowNetworkMonitor();
	CNetworkMonitorFrame *m_pNetworkMonitor;
	CInstantMessengerFrame *m_pInstantMessenger;
	BOOL AddInstantMessage(LPCTSTR czIP, LPCTSTR czName, LPCTSTR czMessage,
		COLORREF crBack, COLORREF crText, BOOL bTo = FALSE);
	int m_nUnknownIcon[2];
	CString m_cszProgDirectory;
	BOOL UpdateAfterTransfer(LPCTSTR czDirectory);
	BOOL NewView(LPCTSTR czMachine, int nSysType = 1);
	BOOL ShowTransferAgent();
	BOOL m_bCanChangeSettings;
	UINT TransferFile(LPCTSTR czFileSrc, LPCTSTR czSrcIP, LPCTSTR czFileDst, 
		LPCTSTR czDstIP, BOOL bMove = TRUE);
	CTransferAgentFrame *m_pTransferAgent;
	BOOL m_bANetInit;
	CAwareNet m_cANet;
	BOOL ShowDirectoriesList();
	BOOL ShowFriendsList();
	BOOL GetSharedDirectories(CStringArray &csaDirectories);
	CFriendsListFrame *m_pFriendsList;
	CDirectoryListFrame *m_pDirectoryList;
	int m_nNormalFolderIcon[3];
	int m_nShareFolderIcon[3];
	CSettingsArchive * GetArchive();
	CString m_cszNewTargetMachine;
	int m_nNewSysType;
	afx_msg void OnFileNew();

	//{{AFX_MSG(COscarApp)
	afx_msg void OnAppAbout();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_OSCAR_H__2DF0D445_549E_11D3_B8DB_00600838CD5F__INCLUDED_)

⌨️ 快捷键说明

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