PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Marc Van Cauwenberghe on January 11, 2009, 10:23:56 AM

Title: Resize thing
Post by: Marc Van Cauwenberghe on January 11, 2009, 10:23:56 AM
Hello,

I really need to dig into the fact that I do not have any resize capabilities in my current programs.
Does anyone have some good tips/links/source/... to get me started.
If at all possible Firefly-Friendly :)

Regards,
Marc
Title: Re: Resize thing
Post by: TechSupport on January 12, 2009, 12:54:31 PM
I always handle resizing the same way in all my programs. In the WM_SIZE message handler for the Form, I place a function call to a dedicated function that repositions controls based on the current width and height of the Form.

I am not sure what your experience is with moving and positioning controls but I suggest that learn how to use the Win api function SetWindowPos. It can move and resize (and show/hide as well).

Where are you having trouble?