Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

  • *Experts*
Posted

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.

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

Posted

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.

  • *Experts*
Posted

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.

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

  • *Experts*
Posted

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.

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...