We are looking at using the WinFormsControlHelpers.h (thank you very
much, Chris Sells and Mark Boulter :) to host some of our WinForms
controls in an old MFC app.  It is working very well aside from one
small issue which is tab order.

MFC pays no attention to the TabIndex property (just using the normal
tab order == window creation order, I believe) which causes a really
screwy tab order.  The only way we've found to control tab order is by
reordering them as they are added to the Controls array of the owner
inside the InitializeComponent function.  The InitializeComponent
function is, of course, generated and likely subject to do it's own
reordering at any time.  Trying to reorder them after
InitializeComponent doesn't always work because the windows may have
already been created.

Has anyone found a preferred or better way of controlling tab order in
these hosted controls?

Thanks!

DJ



**********************************************************************
This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to
whom they are addressed. If you have received this email
in error please notify the system manager.

This footnote also confirms that this email message has been
swept by MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

Reply via email to