detecting height of titlebar?

I'm trying to detect the height of various components in a given windows theme. For example, I need to know the height of the titlebar. By "titlebar", I mean the area at the top of a window that has the name of the program.

I'm working in Windows, if that matters.

Does anyone have any hints?

Hello,

···

On Wed, Feb 11, 2009 at 9:37 PM, Alec Bennett whatyoulookin@yahoo.com wrote:

I’m trying to detect the height of various components in a given windows theme. For example, I need to know the height of the titlebar. By “titlebar”, I mean the area at the top of a window that has the name of the program.

I’m working in Windows, if that matters.

Does anyone have any hints?

I think that this might work

height = wx.SystemSettings_GetMetric(wx.SYS_CAPTION_Y)

Cody

How about using:
window_rect = window.GetRect()
client_rect = window.GetClientRect()
title_bar_height = window_rect.height - client_rect.height

···

On Wed, Feb 11, 2009 at 10:37 PM, Alec Bennett whatyoulookin@yahoo.com wrote:

I’m trying to detect the height of various components in a given windows theme. For example, I need to know the height of the titlebar. By “titlebar”, I mean the area at the top of a window that has the name of the program.