SkinFramework not applied to all Controls on Form |
Post Reply |
Author | |
gerichtzh
Newbie Joined: 10 August 2009 Location: Switzerland Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 10 August 2009 at 9:20am |
Situation:
I took the SkinMDISample as a template project to develop an application that features an MDI-Interface, a Ribbon-Bar (XtremeCommandBars) and a Docking-Pane Interface (XtremeDockingPane). My intention was to apply a skin on all the controls/forms. I had to keep in mind the following points:
1) The Ribbon-Bar object (of type AxCommandBars), the Docking-Pane object (AxDockingPane) and the skin-framework object (AxSkinFramework) are on the main-form.
2) The main-form is the MDI-parent
3) The MdiParent-property is set on every child-form to the main-form
4) The Ribbon-bar uses another technique to apply skins. Therefore the ApplyWindow() method must not be applied for the main-form
5) The ApplyWindow() method is applied for each child-form (this is done in the OnVisibleChanged()-method)
6) OnBackColorChanged() is called for every child-form
Problem:
The skin is properly applied for the Ribbon-bar as well as for most other controls. BUT: There are some controls that do not apply the skin (e.g. DataGridView, or some scroll-bars). I don't know what might be wrong, because in my opinion, it's the same logic as in the sample application.
|
|
Baldur
Senior Member Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
|
The problem may be windowless controls, they can't be skinned because the have no hWnd. This controls draw directly to the parent devicecontext.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |