PC Review


Reply
Thread Tools Rate Thread

How can I paint window's titlebar?

 
 
Doker
Guest
Posts: n/a
 
      20th Nov 2004
How can I paint window's titlebar?

I've accessed the titlebar doing this
Me.AccessibilityObject.Navigate(AccessibleNavigation.Up)
but from there i have no clue how to 'CreateGraphics'.
Any ideas?

PS. (VB 2005 beta1)


 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      20th Nov 2004
Doker,

To avoid beta testing with real programming, can you ask your beta questions
here?

http://communities.microsoft.com/new...idbey&slcid=us

Dziêkujê,

Cor

"Doker" <(E-Mail Removed)>
..
> How can I paint window's titlebar?
>
> I've accessed the titlebar doing this
> Me.AccessibilityObject.Navigate(AccessibleNavigation.Up)
> but from there i have no clue how to 'CreateGraphics'.
> Any ideas?
>
> PS. (VB 2005 beta1)
>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      20th Nov 2004
"Doker" <(E-Mail Removed)> schrieb:
> How can I paint window's titlebar?
>
> I've accessed the titlebar doing this
> Me.AccessibilityObject.Navigate(AccessibleNavigation.Up)
> but from there i have no clue how to 'CreateGraphics'.
> Any ideas?


You will have to respond to the 'WM_NCPAINT' message in your form's
'WndProc' and draw the title bar there:

<URL:http://groups.google.de/groups?q=WM_NCPAINT+dotnet>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      20th Nov 2004
Herfried,

You have quoted again without important information.

This can give problems when people are on Google searching for answers.

When it is for beta 2005 as for production versions, than tell that in your
message.

Cor

"Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)>

>> How can I paint window's titlebar?
>>
>> I've accessed the titlebar doing this
>> Me.AccessibilityObject.Navigate(AccessibleNavigation.Up)
>> but from there i have no clue how to 'CreateGraphics'.
>> Any ideas?

>
> You will have to respond to the 'WM_NCPAINT' message in your form's
> 'WndProc' and draw the title bar there:
>
> <URL:http://groups.google.de/groups?q=WM_NCPAINT+dotnet>
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>
>
>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      20th Nov 2004
"Cor Ligthert" <(E-Mail Removed)> schrieb:
> You have quoted again without important information.
>
> This can give problems when people are on Google searching for answers.


Why?!

> When it is for beta 2005 as for production versions, than tell that in

your
> message.


The code is the same for .NET 1.0, .NET 1.1, and .NET 2.0, AFAIS.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      20th Nov 2004

"Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)>

> "Cor Ligthert" <(E-Mail Removed)> schrieb:
>> You have quoted again without important information.
>>
>> This can give problems when people are on Google searching for answers.

>
> Why?!
>
>> When it is for beta 2005 as for production versions, than tell that in

> your
>> message.

>
> The code is the same for .NET 1.0, .NET 1.1, and .NET 2.0, AFAIS.
>

As I said do tell that than, I hope I explain your Why with that. Than I see
not any problem, I have the idea that some parts of messages in sometimes
disapear in Google

Cor


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
hover on titlebar brings window to top? kmb Windows XP Customization 5 18th Dec 2005 05:56 PM
window xp Titlebar Charles Windows XP Performance 2 8th Jun 2004 02:37 PM
window xp Titlebar Charles Windows XP Performance 0 8th Jun 2004 12:17 AM
open in new window only shows titlebar tom Windows XP Customization 1 18th Dec 2003 02:55 AM
How do you paint the titlebar of a form? Gregory Hawke Microsoft C# .NET 2 21st Oct 2003 06:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:23 PM.