How to create a customized window frame border? Possible?

  • Thread starter Thread starter James
  • Start date Start date
J

James

Does anyone know if it is possible, in C#, to use a customized window
frame?

For example, programs like Winamp and AdAware do not use the standard
box window frame, but a customized design.

I'm guessing that this is a bitmap that is somehow applied with an API
call?

Thanks!
Jaime
 
Jamie,

Winamp and AdAware use custom painting to do this. Look at the
WM_NCPAINT message. It is sent to windows to indicate that the frame
painting should occur. To handle this message, you would override the
WndProc method on your form to handle this message, and perform the painting
yourself.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top