Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - SetSchema does not work?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SetSchema does not work?

 Post Reply Post Reply
Author
Message
Hmbucker View Drop Down
Newbie
Newbie


Joined: 12 October 2012
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hmbucker Quote  Post ReplyReply Direct Link To This Post Topic: SetSchema does not work?
    Posted: 15 October 2012 at 4:26am
Hi,

I am using Toolkit Pro in an activeX which is used by other applications as a plug in.
When I call the function LoadSkin(my_skin); the my_skin is imposed not only on the ActiveX control, but also on the Containing application which is not what I want (the result of this is that the containing app becomes ugly because of the owner drawn components)
So I decided to try CreateSchema + SetWindowTheme so that I could set the skin on all components used individually.
Unfortunately this only seems to work after doing the LoadSkin first???
Then I tried to derive a button in order to be able to draw png files on it.  To my surprise, the skin from the LoadSkin function overrules the WindowTheme so that the wrong skin is drawn first and then my png is drawn on top of it?

Is there a solution for this problem somehow?

Thanks in advance.
Koen
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.