分类: 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