What is the equivalent code in C++ to get the scalewidth, scaleheight, scaleleft, and scaletop of a dialog like in VB?
Printable View
What is the equivalent code in C++ to get the scalewidth, scaleheight, scaleleft, and scaletop of a dialog like in VB?
There's no concept of scale* in Windows, it's just part of VB...use GetWindowRect(hWnd, ptr_to_RECT_structure) which will give you the window's bounding rectangle.
Would probably want to use GetClientRect, since GetWindowRect returns the size fo the entire window, including borders and titlebar.
Z.
Yes, GetClientRect works better.