Resizing Controls at run-time?

Started by halsten, November 18, 2008, 08:19:30 PM

Previous topic - Next topic

halsten

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


iancasey

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

TimoVJL


In WndProc:

case WM_SIZE:
MoveWindow(hWndEdit, 0, 0, LOWORD(lParam), HIWORD(lParam), TRUE);
return 0;
May the source be with you