4
17
新手上路
使用道具 举报
1万
7万
11万
管理员
eric2013:
chinn:我使用下面的代码想实现删除字符的功能,可是没有反应,还请硬汉大哥帮忙看下,谢谢。 hItem = WM_GetDialogItem(pMsg->hWin, ID_EDIT_0); if(WM_HasFocus(hItem) != 1) { ....... (2015-12-24 16:10) 
eric2013: 按说没问题的,你现在的是外部按键在控制吗,还是emWin创建的button在控制。
chinn:我用的是emWin创建的button在控制。现在只有用土方法了 CursorPos = EDIT_GetCursorCharPos(hItemEdit); if(CursorPos == 0) { ....... (2015-12-28 09:51) 
eric2013:可以发送消息的,你看下这个例子,注意将你的button设置禁止聚焦,因为 GUI_SendKeyMsg是给聚焦的控件或者窗口发消息的。 https://forum.anfulai.cn/forum.php?mod=viewthread&tid=6042 (2015-12-28 09:56) 
本版积分规则 发表回复 回帖后跳转到最后一页
|小黑屋|Archiver|手机版|硬汉嵌入式论坛
GMT+8, 2025-8-16 13:45 , Processed in 0.044845 second(s), 27 queries .
Powered by Discuz! X3.4 Licensed
Copyright © 2001-2023, Tencent Cloud.