By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,331 Members | 1,278 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,331 IT Pros & Developers. It's quick & easy.

FormTitle

P: n/a
i,

Anyone can send me a code exaple to customize the Window
Title Bar?

I need to change the color and the Control Buttons.

Thanks in advance.

Diego

Diego,

If you want to do this, then you will have to override the WndProc
method on the Form, and handle the WM_NCPAINT message. You will have to
custom paint the title and the buttons yourself, and handle the processing
of the click events by handling the WM_NCLBUTTONDOWN message, as well as
others.

Also, you will have to call out to GetDCEx in order to get the device
context of the border to paint on.
Nov 13 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.