?
Solved

Draw on TitleBar (C#!)

Posted on 2004-09-13
5
Medium Priority
?
3,088 Views
Last Modified: 2012-05-05
I'd like to create a 'skinned' window. But I need to be able to create my own TitleBar and such. Any suggestions? this needs to be in C#. All the code I've been able to find is in C++ and VB6 ...which isn't at all helpful.
0
Comment
Question by:derekthornton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 18

Expert Comment

by:armoghan
ID: 12051412
A suggestion
while you are making a skinned window, you can hide the actual titlebar and create your own titlebar with buttons of minimze/max etc and provide the same functionality
0
 
LVL 18

Expert Comment

by:armoghan
ID: 12051431
The Titlebar colors/shape are determined by system settings or themes. They apply
to all windows and cannot easily be manipulated. You would have to draw
directly to the frame during NC paint events or replace the titlebar with a
custom control and implement the windowing functionality yourself.

http://www.error-bank.com/microsoft.public.dotnet.languages.csharp/194174_Thread.aspx
0
 
LVL 7

Accepted Solution

by:
God_Ares earned 2000 total points
ID: 12053129
have a look at this:

http://msdn.microsoft.com/msdntv/episode.aspx?xml=episodes/en/20040401WinFormsMH/manifest.xml

might be interesting,.. just a helpfull comment nothing more...
0
 
LVL 18

Expert Comment

by:armoghan
ID: 12053659
0
 
LVL 10

Expert Comment

by:ptmcomp
ID: 12091212
If you want to override the default painting of the non cient area of the window (frame & title bar) then you need to override WndProc and process the WM_NCPAINT messages (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/pantdraw_8gdw.asp). The other possibility is to draw in the client area and implement the resize and window move functionality yourself.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question