|
谢谢大家 解决了
这是我用的 运行没有问题
evc下让编辑框自动弹出软键盘
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);
} |
|