I have a dialog with edit control, and I did:

dlgDesc->ShowWindow(SW_MAXIMIZE);

to show the dialog maximized, but only maximized the main frame and not the edit control.

How can I maximize the windows and the edit control at the same time?