编辑控制选项卡/子窗口/制表符 [英] Edit control tab / child windows / tabstop

查看:64
本文介绍了编辑控制选项卡/子窗口/制表符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在使用win32API c ++。我将WS_TABSTOP添加到编辑窗口,将WS_EX_CONTROLPARENT和DS_CONTROL添加到父窗口。然而,任何多次敲击tab键都无济于事。


任何人都有可用的示例代码吗?我已经搜索了几个小时,没有MFC就找不到任何东西。我拒绝使用Visual产品,因此我的tab键无法正常工作。


任何帮助都是超级的,

谢谢,

Quincy

解决方案

您使用的是什么产品?


就此而言,您使用的是什么类型的容器?对话框或窗口?


您确定首先将焦点设置在其中一个控件上(使用SetFocus)。


< blockquote>我正在使用gcc编译而没有MFC。


我想通过编辑窗口(文本框)标签


.. 。| WS_TABSTOP | WM_SETFOCUS在我想要首先关注的编辑窗口的样式中。


我所有的编辑窗口都是以某种方式创建的:

展开 | 选择 | Wrap | 行号


好的,但是您是将这些编辑框放在窗口还是对话框上?


响应父窗口中的哪条消息,你创建这些编辑框,或者你的代码结构在哪里?


如果你不''我希望使用MS软件,但希望编写Windows程序您可能希望考虑使用资源编辑器附带的Dev-C ++,允许您以正常方式创建对话框作为资源,而不是在运行时动态创建它们。


Hi,

I''m working with win32API c++. I added the WS_TABSTOP to the edit windows, as well as the WS_EX_CONTROLPARENT and DS_CONTROL to the parent window. Yet any numerous times of punching the tab key does nothing.

Anyone have sample code that works? I''ve searched for acouple hours and couldnt find anything without MFC. I refuse to use Visual products, hence my problem with the tab key not working.

Any help would be super,
Thanks,
Quincy

解决方案

What product are you using then?

For that matter what type of container are you using? Dialogue box or a window?

Are you sure that you have set the focus onto one of the controls in the first place (using SetFocus).


I''m using gcc to compile without MFC.

I want to tab through edit windows (text boxes)

...| WS_TABSTOP | WM_SETFOCUS is in my styles for the edit window I want to be focused first.


All my edit windows are created in some fashion close to this:

Expand|Select|Wrap|Line Numbers


OK, but are you placing these edit boxes on a Window or on a Dialogue box?

In response to which message to the parent window are you creating these edit boxes, or where with-in the structure of your code?

If you don''t wish to use MS software but do wish to write windows programs you may wish to consider using the Dev-C++ which comes with resource editors allowing you to create dialogue boxes in the normal way, as a resource, rather than creating them on the fly at runtime.


这篇关于编辑控制选项卡/子窗口/制表符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆