vb immsetcompositionwindow这个API的用法
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励30(财富值+成长值)
1个回答
展开全部
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
Dim hImc As Long, cf As COMPOSITIONFORM, p As POINTAPI
Dim setcom As Boolean
hImc = ImmGetContext(Text1.hwnd)
cf.dwStyle = CFS_POINT
GetCursorPos p
cf.ptCurrentPos.x = p.x - 300
cf.ptCurrentPos.y = p.y - 300
setcom = ImmSetCompositionWindow(hImc, cf)
ImmReleaseContext Text1.hwnd, hImc
End Sub
Dim hImc As Long, cf As COMPOSITIONFORM, p As POINTAPI
Dim setcom As Boolean
hImc = ImmGetContext(Text1.hwnd)
cf.dwStyle = CFS_POINT
GetCursorPos p
cf.ptCurrentPos.x = p.x - 300
cf.ptCurrentPos.y = p.y - 300
setcom = ImmSetCompositionWindow(hImc, cf)
ImmReleaseContext Text1.hwnd, hImc
End Sub
追问
这是做什么用的?
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询