mauleTTT Posted November 24, 2003 Posted November 24, 2003 Hi all! I'm not sure if this thread have to be in this post ... Well, my objective is make a full customizable app with skins without third party controls, i've been looking in the web for some info, but all that i found is very poor of info. I only see that could be possible using XML, i hope somebody could help me about this, how to implement it, or if somebody have try it ... Sorry for my english, and thanks. Quote
*Experts* Bucky Posted November 24, 2003 *Experts* Posted November 24, 2003 If you're looking to create skins for an app, you will need to learn how to ownerdraw, that is, to intercept Windows' messages to paint the window and to paint it yourself. This is accomplished through subclassing. I suggest you learn the basics of subclassing before going further. XML does not have anything to do with drawing the skins, but it can be used as a way to store the information for the skins (images, colors, etc.) for creating and transferring them. Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
mauleTTT Posted November 24, 2003 Author Posted November 24, 2003 Thanks for your answer Bucky, you know where i can find info of ownerdraw ? I see it a bit with a few controls, like menus and listviews, but i want more info :rolleyes: Thanks. Quote
*Experts* Bucky Posted November 24, 2003 *Experts* Posted November 24, 2003 Check out these articles on EliteVB (notice that they are in VB6), along with the [mshelp=ms-help://MS.MSDNQTR.2003FEB.1033/Cpqstart/html/cpsmpnetsamples-howtowindowsforms.htm#cpsmpOwnerDrawListBoxSample]MSDN documentation[/mshelp] which contains examples for ownerdrawing a listbox. Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
mauleTTT Posted November 25, 2003 Author Posted November 25, 2003 Hi again :rolleyes: All controls don't support Ownerdrawing, how i can solve that? Thanks Quote
*Experts* Bucky Posted November 25, 2003 *Experts* Posted November 25, 2003 In that case, you'll have to subclass the window of the control and block all messages that Windows sends that tell the control to paint itself (such as WM_PAINT). Then you have to paint the control yourself. Again, this requires a good understanding of subclassing. Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
mauleTTT Posted November 25, 2003 Author Posted November 25, 2003 Ok, i will look for it. Thanks ;) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.