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.
 
Back
Top