PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms Focus problem on UserControl on Active Doc Server

Reply

Focus problem on UserControl on Active Doc Server

 
Thread Tools Rate Thread
Old 03-06-2005, 08:39 AM   #1
=?Utf-8?B?am9ybmZh?=
Guest
 
Posts: n/a
Default Focus problem on UserControl on Active Doc Server


Hi

I have the following setup:
1) Managed UserControl with several child controls (e.g. buttons, listbox)
created in C#
2) SDI Active Document Server created with VC++ and MFC
3) On the SDI view frame the Managed UserControl is created with
CWinFormsControl::CreateManagedControl
4) Running on Windows XP with appearance set to "Windows Classic Style"

And the following problem:
No focus is being shown (like focus rectangle for a button) for the child
controls on the managed control when the Appearance is set to ""Windows
Classic Style" in Windows. If "Windows XP Style" appearance is chosen instead
it works fine and focus rectangles are shown. Tabbing and focus is working
fine, it's just the visual part, which is missing. It is the same problem if
I
use CWinFormsView in MFC and instantiate the managed UserControl that way.

If I instantiate the managed User control on a CFormView or a dialog created
with VC++/MFC it works fine and focus is shown on the controls on the
UserControl.

(same post on vc forums)

Any suggestions?
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off