Tabbing in OLE controls
jerry -- jerry@fast.ftech.co.uk
Wednesday, September 04, 1996
Environment: VC++ 4.2, NT 4.0
I have an OLE control which contains 3 child windows, each capable
of handling keystrokes. How do I persuade the container that there
are effectively 3 controls which are tabbable and not just one ?
TIA.
Jerry
Deepak Saxena -- Deepak_Saxena@ccm.ch.intel.com
Wednesday, September 04, 1996
Try the following:
1) At creation time, select the default child wnd as the current focus
2) Capture the tab key yourself, moving the focus to the appropriate
child wnd as you receive messages. Use some sort of flag to see if
you've already tabbed through all 3 child wnds. If you have, pass the
key press to the container and let it do it's magic.
3) During ON_SETFOCUS, set the focus back to default chld wnd if being
tabbed into, or the previously selected child wnd if you lost focus for
some other reason. You can tell if you lost focus because of the tab
key because you are capturing it.
______________________________ Reply Separator _________________________________
Subject: Tabbing in OLE controls
Author: owner-mfc-l@majordomo.netcom.com at SMTPGATE
Date: 9/4/96 1:32 PM
Environment: VC++ 4.2, NT 4.0
I have an OLE control which contains 3 child windows, each capable
of handling keystrokes. How do I persuade the container that there
are effectively 3 controls which are tabbable and not just one ?
TIA.
Jerry
| Вернуться в корень Архива
|