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

📄 voipdemo.h

📁 Windows CE .Net 下面 VOIP编程的经典实例。对于初学Windows 平台下VOIP编程技术的程序员颇具借鉴意义!
💻 H
字号:
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
/*************************************************************************


  Disclaimer:

    This code and information is provided "as is" without warranty of
    any kind, either expressed or implied, including but not limited to
    the implied warranties of merchantability and/or fitness for a
    particular purpose.

Module Name:

	VoipDemo.h

Abstract:
	
	  Header for mainwindow procedure, UI code

Notes:

**************************************************************************/

#if !defined(AFX_VOIPDEMO_H__EF3270B0_308C_4C6B_9F01_CB1BA760B8D7__INCLUDED_)
#define AFX_VOIPDEMO_H__EF3270B0_308C_4C6B_9F01_CB1BA760B8D7__INCLUDED_

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

#include "stdafx.h"
#include "rtcs.h"
#include "resource.h"

#define MAINWND_DEFAULTWIDTH	250
#define MAINWND_DEFAULTHEIGHT	450
#define MAINWND_TOOLBARHEIGHT	68
#define MAINWND_STATUSBARHEIGHT	20
#define MAINWND_BUDDYTXTLENGTH	128
#define MAINWND_BUDDYROWHEIGHT	20
#define MAINWND_BUDDYTXTHEIGHT	16
#define	MAINWND_BUDDYVIEWHEIGHT	120
#define MAINWND_BUDDYICONWIDTH	24
#define MAINWND_BUDDYVIEWYSTART	141

struct SBUTTONDATA
{
	int x;
	int y;
	int cx;
	int cy;
	int r[3];					// 3 resources: basic bmp, on status bmp, disabled bmp
};


static enum SLTYPE
{
	SL_NOSTATUS,
	SL_MYSTATUS,
	SL_MYINBOX,
	SL_ONLINETEXT,
	SL_ONLINEBUDDIES,
	SL_OFFLINETEXT,
	SL_OFFLINEBUDDIES
};


struct SSTATUSDATA
{
	int x;
	SLTYPE slIconType;
	SLTYPE slTextType;
	COLORREF rgbText;
	int nTextWeight;
	BOOL bTextUnderline;
};

struct PROPERTIES
{
	int nWndX;
	int nWndY;
	int nWndCx;
	int nWndCy;
	BOOL bToolbar;
	BOOL bStatusbar;
	BOOL bAlwaysOnTop;

	TCHAR* szMyName;
	ESTATUS esMyStatus;
};

struct CLIENTBUDDIES
{
	RECT r;
	BUDDYTYPE tBuddyType;
	CEOID dbOID;
	ESTATUS eStatus;
};

extern HINSTANCE	m_hInstance;
extern HWND			m_hWndMain;
extern PROPERTIES	m_sProp;
extern HWND		m_hOnlineView;
extern HWND		m_hOfflineView;



ATOM MyRegisterMainWnd( HINSTANCE, LPTSTR );
BOOL InitInstance( HINSTANCE, int );
BOOL InitListViews();

LRESULT CALLBACK WndProc( HWND, UINT, WPARAM, LPARAM );
LRESULT CALLBACK Proc_About( HWND, UINT, WPARAM, LPARAM );
LRESULT CALLBACK Proc_AddBuddy( HWND, UINT, WPARAM, LPARAM );
LRESULT CALLBACK Proc_EditBuddy( HWND, UINT, WPARAM, LPARAM );
LRESULT CALLBACK Proc_MyStatus(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
LRESULT CALLBACK Proc_EditMyInfo(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
LRESULT CALLBACK Proc_MakeCall(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
LRESULT CALLBACK Proc_SendIM(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);

LRESULT DoMainPaint( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam );
LRESULT DoMainMouseMove( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam );

void DrawButtons( HDC hdc );


#endif // !defined(AFX_VOIPDEMO_H__EF3270B0_308C_4C6B_9F01_CB1BA760B8D7__INCLUDED_)

⌨️ 快捷键说明

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