Handle of the titlebar of a window ?

Windows specific forum
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Handle of the titlebar of a window ?

Post by Hroudtwolf »

Hello,


How to get the handle of the titlebar of a window ?
Does anyone have advice ?


Thanks for all helpful answeres.

Greeting

Hroudtwolf
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

The titlebar doesn't have it's own handle.

Edit: If you want to draw on it, use GetWindowDC instead of GetDC and the returned device context contains the title bar and everything instead of only the client area.
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Post by Hroudtwolf »

Ok. I understand.

Thank you very much.
Post Reply