Page 1 of 1

Handle of the titlebar of a window ?

Posted: Sat Nov 05, 2005 2:30 pm
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

Posted: Sat Nov 05, 2005 3:25 pm
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.

Posted: Sat Nov 05, 2005 3:48 pm
by Hroudtwolf
Ok. I understand.

Thank you very much.