vc
源代码在线查看: subject_34524.htm
序号:34524 发表者:hththt 发表日期:2003-03-31 09:29:34
主题:如何弹出软键盘?急..
内容:单击某个按钮时,弹出软键盘,如何实现?
返回上页访问论坛
答案被接受回复者:bird 回复日期:2003-03-31 09:31:19
内容:打开/关闭软键盘 void CHideDlgDlg::OnButton10() { // TODO: Add your control notification handler code here CWnd * pWnd = GetDlgItem(IDC_TREE1); if (pWnd){ pWnd->SetFocus(); HIMC hIMC = ImmGetContext(pWnd->m_hWnd); DWORD dwConv, dwSent; DWORD dwTemp; ImmGetConversionStatus(hIMC,&dwConv,&dwSent); if (dwConv & IME_CMODE_SOFTKBD) dwConv &= ~IME_CMODE_SOFTKBD; else dwConv |= IME_CMODE_SOFTKBD; ImmSetConversionStatus(hIMC,dwConv,dwSent); ImmReleaseContext(pWnd->m_hWnd,hIMC); } }
返回上页访问论坛
回复者:Justin Le 回复日期:2003-03-31 16:58:51
内容:好,我好佩服哦, bird_ydp 什么都会
返回上页访问论坛