Chinaunix首页 | 论坛 | 博客
  • 博客访问: 462874
  • 博文数量: 83
  • 博客积分: 92
  • 博客等级: 民兵
  • 技术积分: 690
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-25 13:33
文章分类

全部博文(83)

文章存档

2014年(3)

2013年(59)

2012年(16)

2011年(5)

我的朋友

分类: Windows平台

2013-07-09 17:44:15

1.在工程源文件下添加头文件 
#include "SIPAPI.H"

2.给编辑框添加获得焦点和失去焦点的消息映射

BEGIN_MESSAGE_MAP(CSDProDlg, CDialog)
 //{{AFX_MSG_MAP(CSDProDlg)

 ON_EN_KILLFOCUS(IDC_EDIT4, OnKillfocusEdit4)
 ON_EN_SETFOCUS(IDC_EDIT4, OnSetfocusEdit4)

 //}}AFX_MSG_MAP
END_MESSAGE_MAP()

3.在消息函数中添加SipShowIM(SIPF_OFF/SIPF_ON);

void CXXX::OnKillfocusEdit4() 
{
     // TODO: Add your control notification handler code here
     SipShowIM(SIPF_OFF); 
}

void CXXX::OnSetfocusEdit4() 
{
     // TODO: Add your control notification handler code here
     SipShowIM(SIPF_ON);
}

 

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/onlyou930/archive/2009/08/15/4450623.aspx

阅读(5750) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~