Hi,
Quote:
> When writing a client component in VC I can send a WM_NEXTDLGCTL on
> receiving a VK_TAB. But when the component is written in VB it does not
seem
> te work.
> So my questions are, how does the TabStop work in VB and how can I make
it
> work?
I didn't work with VB form before, and might be wrong. In my understanding
VB form exposed to your VC container as ActiveX control (or maybe Active
Document ?).
For in-place activated ActiveX controls container uses
IOleInPlaceActiveObject::TranslateAccelerator to process accelerator-key
window messages. Inside TranslateAccelerator control handles related
messages, for example processes TAB key, etc.
Also IOleControl::GetControlInfo/OnMnemonic can be used by container to
proceed control accelerators.
Active Documents container calls IOleInPlaceFrame::TranslateAccelerator for
in-place activated documents.
So to make TAB key working you need to update container's message loop, and
call control's IOleInPlaceXXX::TranslateAccelerator method there, when it's
necessary (usual place is where container makes own Win32 API
::TranslateAccelerator call).
Hope it helps.
--
Best regards,
Vadim Melnik
_____________________
http://www.docsultant.com/