Pelles C forum

C language => Windows questions => Topic started by: halsten on November 18, 2008, 08:19:30 PM

Title: Resizing Controls at run-time?
Post by: halsten on November 18, 2008, 08:19:30 PM
My question is simple, I want to know how to resize the control according to the current width and height of the form during run-time, any sample(s) would be highly appreciated.

Regards,
halsten
Title: Re: Resizing Controls at run-time?
Post by: CLR on November 18, 2008, 11:49:24 PM
http://winprog.org/tutorial/app_three.html
Title: Re: Resizing Controls at run-time?
Post by: iancasey on April 26, 2009, 10:33:15 PM
This is late but maybe others can use it.

it was originally written in BCX but here is the "c" translation of my demo.

http://www.bcxgurus.com/bcxusers/Ian/Chat_Files/AnchorDemo.C

sorry if there alot of test controls in there.

Ian
Title: Re: Resizing Controls at run-time?
Post by: TimoVJL on April 27, 2009, 06:49:46 PM

In WndProc:
Code: [Select]
case WM_SIZE:
MoveWindow(hWndEdit, 0, 0, LOWORD(lParam), HIWORD(lParam), TRUE);
return 0;