Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Cannot press tab to move to a tab control after using WS_EX_CONTROLPARENT

113 views
Skip to first unread message

jjolly

unread,
May 31, 2001, 10:48:51 AM5/31/01
to
I am trying to put a tab control in a dialog with other edit
controls. I am creating three frameless child dialogs with the
tab control as the parent.

If I do not set the WS_EX_CONTROLPARENT style to the
tab control, I am able to press the tab key to get to the tab
control, but I can never tab to the current child dialog. If I set
the WS_EX_CONTROLPARENT style, I can now tab to the
current child dialog, but the tab key completely skips over the
tab control.

I have tried to set the WS_TABSTOP style to the tab control
but it hasn't made any difference. Ideally, I want to be able to
press the tab key to select the tab control, then press the tab
key again to move to the first control in the child dialog.

Help?

John Jolly
----
Posted via http://www.etin.com - the FREE public USENET portal on the Web
Complete SEARCHING, BROWSING, and POSTING of text and BINARY messages!

jjolly

unread,
May 31, 2001, 1:37:38 PM5/31/01
to
<RANT>
Damn the unintuitive interface design of Microsoft products!!!
</RANT>

Figured out that I should rather assign the main dialog as the
parent of the child dialogs and not set that *stupid*
WS_EX_CONTROLPARENT style to the tab control. After
playing around with the dialog positioning, everything now
looks and works fine.

So, what did I learn from this? That the Win32 tab control is
mearly a pretty bauble that gives you an event when the tab
is changed. Now, if only I could figure out how to hot-key to
the different tabs, I'd be in business. But that's not very
bloody likely.

John Jolly

In reply to:
http://www.etin.com/article/Article.jsp?
messageID=24756856&folder=microsoft.public.vc.mfc

0 new messages