资源简介
非常完美的SIP软电话,可以直接在vs2008下编译,不需要任何改动即可编译成功并投入使用,开发者也可以以这个为基础,修改成自己想要的界面,目前支持多种语音编码,在易用性,稳定性上远超著名的linphone。
代码片段和文件信息
// AboutDlg.cpp : implementation file
//
#include “stdafx.h“
#include “AboutDlg.h“
struct BmpPos
{
int id;
char *const bmpname;
int p[4];
int x;
int y;
} bmp_pos_about[]={
{ 0 “QUIT_BTN“ {22 43 285 383}315 0}
{ 1 “OK_BTN“ {369 393 198 395}142 159}
{ 2 “URL_BTN“ {700 715 0 485}20 122}
};
#define BTN_NUM 3
// CAboutDlg dialog
IMPLEMENT_DYNAMIC(CAboutDlg CDialog)
CAboutDlg::CAboutDlg(CWnd* pParent /*=NULL*/)
: CDialog(CAboutDlg::IDD pParent)
{
}
CAboutDlg::~CAboutDlg()
{
}
void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX IDC_ABOUT_QUIT m_quit);
DDX_Control(pDX IDC_ABOUT_OK m_ok);
DDX_Control(pDX IDC_ABOUT_URL m_url);
}
BEGIN_MESSAGE_MAP(CAboutDlg CDialog)
ON_WM_PAINT()
ON_WM_LBUTTONDOWN()
END_MESSAGE_MAP()
BOOL CAboutDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CBitmap bmp;
bmp.LoadBitmapA(IDB_ABOUT);
HBITMAP hBmp=HBITMAP(bmp);
HRGN rgn;
rgn = m_BmpOper.BitmapToRegion(hBmp RGB(00 255));
SetWindowRgn(rgn TRUE);
Deleteobject(hBmp);
bmp.Deleteobject();
bmp.LoadBitmapA(IDB_BUTTON);
hBmp=HBITMAP(bmp);
if(!hBmp) return TRUE;
HDC hMemDC = CreateCompatibleDC(NULL);
Selectobject(hMemDC hBmp);
RECT r1r2r3;
for(int i =0; i {
int w=(bmp_pos_about[i].p[3] - bmp_pos_about[i].p[2] + 1)/3;
r1.top =bmp_pos_about[i].p[0]; r1.bottom=bmp_pos_about[i].p[1]; r1.left =bmp_pos_about[i].p[2]; r1.right =r1.left + w -1;
r2.top =bmp_pos_about[i].p[0]; r2.bottom=bmp_pos_about[i].p[1]; r2.left =r1.right + 1; r2.right =r2.left + w -1;
r3.top =bmp_pos_about[i].p[0]; r3.bottom=bmp_pos_about[i].p[1]; r3.left =r2.right + 1; r3.right =r3.left + w -1;;
switch(bmp_pos_about[i].id)
{
case 0:
m_quit.MoveWindow(bmp_pos_about[i].x bmp_pos_about[i].y 0 0);
m_quit.SetHbmp(m_BmpOper.CopyDCToBitmap(hMemDC &r1)m_BmpOper.CopyDCToBitmap(hMemDC &r2)m_BmpOper.CopyDCToBitmap(hMemDC &r3));
break;
case 1:
m_ok.MoveWindow(bmp_pos_about[i].x bmp_pos_about[i].y 0 0);
m_ok.SetHbmp(m_BmpOper.CopyDCToBitmap(hMemDC &r1)m_BmpOper.CopyDCToBitmap(hMemDC &r2)m_BmpOper.CopyDCToBitmap(hMemDC &r3));
break;
case 2:
m_url.MoveWindow(bmp_pos_about[i].x bmp_pos_about[i].y 0 0);
m_url.SetHbmp(m_BmpOper.CopyDCToBitmap(hMemDC &r2)m_BmpOper.CopyDCToBitmap(hMemDC &r1)m_BmpOper.CopyDCToBitmap(hMemDC &r2));
break;
}
}
Deleteobject(hBmp);
DeleteDC(hMemDC);
bmp.Deleteobject();
RECT r; int m_xm_y;
this->GetParent()->GetWindowRect(&r);
m_x =r.right - 355;
m_y =r.top + 140;
this->MoveWindow(m_x m_y355 201);
return TRUE;
}
// CAboutDlg message handlers
void CAboutDlg::OnPaint()
{
CBitmap bmp;
bmp.LoadBitmapA(IDB_ABOUT);
HBITMAP hBmp=HBITMAP(b
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 214724 2009-11-13 16:21 sip-windows_phone\release\skin\aboutdlg.bmp
文件 578936 2009-11-13 16:21 sip-windows_phone\release\skin\accountdlg.bmp
文件 227036 2009-11-13 16:25 sip-windows_phone\release\skin\authdlg.bmp
文件 1270 2006-07-21 18:17 sip-windows_phone\release\skin\bitmap1.bmp
文件 1010184 2010-04-02 11:11 sip-windows_phone\release\skin\button.bmp
文件 1415549 2010-04-02 10:55 sip-windows_phone\release\skin\button.psd
文件 552056 2009-11-13 16:25 sip-windows_phone\release\skin\calllog.bmp
文件 363396 2010-04-10 08:56 sip-windows_phone\release\skin\main.bmp
文件 444365 2009-10-10 15:10 sip-windows_phone\release\skin\main.psd
文件 363396 2008-12-11 13:48 sip-windows_phone\release\skin\main1.bmp
文件 577620 2009-11-13 16:25 sip-windows_phone\release\skin\optiondlg.bmp
文件 469256 2009-11-13 16:25 sip-windows_phone\release\skin\phonebook.bmp
文件 71540 2009-11-13 16:25 sip-windows_phone\release\skin\referDlg.bmp
文件 182576 2009-11-13 16:25 sip-windows_phone\release\skin\server.bmp
..A.SH. 40960 2010-04-10 08:56 sip-windows_phone\release\skin\Thumbs.db
文件 6756 2009-09-20 22:56 sip-windows_phone\release\skin\userdefine.bmp
文件 363396 2009-11-13 16:25 sip-windows_phone\release\skin\复件 main.bmp
文件 132056 2008-12-10 16:22 sip-windows_phone\release\skin\未标题-1.bmp
文件 2257 2008-11-24 16:56 sip-windows_phone\UpgradeLog.xm
文件 4099 2009-11-13 16:32 sip-windows_phone\windows_phone\AboutDlg.cpp
文件 684 2009-10-10 17:11 sip-windows_phone\windows_phone\AboutDlg.h
文件 15820 2009-11-07 19:25 sip-windows_phone\windows_phone\AccountDlg.cpp
文件 1626 2009-11-07 19:25 sip-windows_phone\windows_phone\AccountDlg.h
文件 2382 2009-11-13 11:53 sip-windows_phone\windows_phone\AudioDlg.cpp
文件 776 2009-09-28 17:23 sip-windows_phone\windows_phone\AudioDlg.h
文件 4916 2009-11-13 16:35 sip-windows_phone\windows_phone\AuthDlg.cpp
文件 911 2009-09-28 17:26 sip-windows_phone\windows_phone\AuthDlg.h
文件 18189 2010-02-26 15:56 sip-windows_phone\windows_phone\ba
文件 1528 2009-10-13 11:40 sip-windows_phone\windows_phone\ba
文件 8726 2008-12-04 15:14 sip-windows_phone\windows_phone\BmpOperation.cpp
............此处省略143个文件信息
- 上一篇:QQ旋风会员专用.exe
- 下一篇:u010724960_10692097.zip
相关资源
- 一个SIP协议栈的实现源码
- 广西版全国版f460 sip V2.30
- 中兴光猫 F660 电信版升级文件
- PJSUA开发文档(中文)
- Lumisoft SIP 使用时一些问题的修正(附
- Microphone Array Signal Processing 高清彩色版
- 计算理论导引 Michael Sipser著
- SolidWorks iphone 5S模型
- iphone 开发应用之上海地铁
- 蓝牙小车iPhone客户端
- VoIP压力测试工具WinSIP及注册机
- 苹果6P原理图,PCB元件 AB面图高清
- iphone开发账户中添加Udid,签名和打包
- axureiPhone机型元件库
- PhoneGap例子80496
- JsSIP demo
- iphone4 SHSH全集
- eXosip_v4.1.0开发手册
- iPhoneXS 原理图(AP+BB).pdf
- iOS版CHM阅读器源码
- VOIP SIP实验报告
- 超好用取色器 Sip,免激活
- Introduction to the Theory of Computation 3rd
- sip协议(中文版)
- xcode编写iphone电子琴程序
- WinSip 破解版
- windows phone 7 铃声
- GB28281之sip协议
- 苹果iphone手机数据恢复软件 v2.1 免费
- 高清版本SPAD SiPM 激光雷达sensor 技术简
评论
共有 条评论