PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Focus problem on UserControl on Active Doc Server
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Focus problem on UserControl on Active Doc Server
![]() |
Focus problem on UserControl on Active Doc Server |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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? |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

