Help - Search - Members - Calendar
Full Version: Windows Api
Lumenlab > COMMUNITY: the hang out... > General Discussion
DAZZZLA
Does anyone know the API function to find the sizes of the title bar and other borders?

DJ
Delfins
1.) GetWindowRect(hwnd,rect)
2.) borders for what !?
3.) Use MSDN search - there is all info (API,articles,examples)
DAZZZLA
QUOTE (Delfins @ Aug 8 2006, 11:10 PM) *
1.) GetWindowRect(hwnd,rect)
2.) borders for what !?
3.) Use MSDN search - there is all info (API,articles,examples)

Thanks Deflins.
I was after the border widths and the title bar height for a form. I’m actually programming in VB but there are a few idiosyncrasies with its coordinates. The answer was under my nose. The function is GetSystemMetrics(32) for the border and GetSystemMetrics(4) for the title bar.

DJ
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.