Settings | Sign in | Sign up

The author has 2 posts.

解决键盘上的Tab键无法使光标在Tab控件和子页面控件间移动的问题

Floor 1 巨大八爪鱼 7/10/24 20:54
使键盘上的Tab键能够正常让光标在Tab控件和子页面控件间切换的方法:
(1)使用CreateDialog函数创建子页面时,第三个参数(父窗口)必须为main_dlg(tab控件所在的窗口),不能为tabctrl(tab控件本身)。
(2)Tab控件本身的Tabstop属性必须为True。
(3)各子页面(IDD_DIALOG1和IDD_DIALOG2)本身的Control Parent属性必须为True。
(4)切换选项卡(switch_tab)后,必须调用SetFocus(tabctrl)将当前光标切换到Tab控件上。
Floor 2 巨大八爪鱼 7/10/24 22:10
https://blog.csdn.net/ZLK1214/article/details/140308793

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.