.NET
aa600.txt
Associated article: Layout Management
Tags: .NET
Published source code accompanying the article by John Keogh in which he presents and implements an algorithm for scaling child windows when the parent is resized. Although the example runs under the Win32 API, the algorithm and data structure are generally useful for scaling child windows on other platforms. Also see AA600.ZIP.
Algorithm Alley
by John Keogh
Listing One
/* holds an identifier and the initial RECT of the control */
typedef struct
{
HWND hControl;
RECT rect;
} resizeinfo;
Listing Two
/* iterate through the resize array and get the correct information*/
resizeinfo GetResizeInfo(HWND hwnd)
{
...


