Traverse a list of all controls in a dialog

S

SonOfGrey

Hi!

I'm looking for a way to traverse all the controls on a dialog in the
order of the tabstop index. Note that I use unmanaged C++, so no
GetTabIndex function afaik.

The ALMOST perfect function for this looks like:
CWnd::GetNextDlgTabItem.

BUT...this function skips controls that are disabled (WS_DISABLED),
and that's a problem, because I want to traverse ALL controls.

So again in short: a way to traverse all controls on a dialog in the
tabstop index order, without skipping disabled ones.

Thank you very much for any directions on how to solve this!
 
A

Alf P. Steinbach

* SonOfGrey:
[off-topic]

The FAQ lists a number of groups that might be suitable for your
question. Which one depends on the platform and GUI framework you're
using. Most probably a group in the ms.* hierarchy (because most OT
posts are about Windows programming, so perhaps yours is also) or e.g.
[comp.os.ms-windows.programmer.win32] will be suitable.

Hth.,

- Alf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top