CHtmlView class and focus

Posted by NativeByte on Stack Overflow See other posts from Stack Overflow or by NativeByte
Published on 2010-03-30T10:24:40Z Indexed on 2010/03/31 9:33 UTC
Read the original article Hit count: 433

Filed under:
|
|
|

I have an SDI application written in MFC. The frame is divided into 1 row and 2 columns using a splitter window. Below are details of Row and Column (R0C0 means Row#0 and Col#0)

  1. R0C0 view is a CFormView with multiple input controls like text box, combo box etc.
  2. R0C1 view is a CHtmlView that contains HTML content relavant to the control that has input focus in the R0C0

I am able to update the HTML content and also invoke Javascript functions through my MFC code.

Problem: When user clicks on the R0C1, continaing CHtmlView, the focus is now on the html page. I wish to allow the user to tab out of R0C1 using the key board and return back to R0C0. Can you help with this please? The user can obviously click on the R0C0 view using mouse but we have a user who needs to use Keyboard for using this functionality.

Let me know if the question is not descriptive enough and I'll simplify it further.

Appreciate your time.

Thanks, Byte

© Stack Overflow or respective owner

Related posts about mfc

Related posts about html