"Joseph M. Newcomer" <newcomer@flounder.com> wrote in message
Take a look at my essay on resizing controls on my MVP Tips site. You do
it in OnSize:
void CMyDialog::OnSize(UINT nType, int cx, int cy)
{
CDialog::OnSize(nType, cx, cy);
if(c_MyEdit.GetSafeHwnd() != NULL)
{
...compute new size
}
}
On Wed, 23 Jul 2008 10:43:35 -0700, "Nick Schultz" <nick.schultz@flir.com>
wrote:
I want to be able to adjust the size of a CEdit control based on the size
of
the dialog. If the user wants to make the size bigger, I will enlarge the
CEdit control, and move the other controls (couple buttons, combobox, etc)
without resizing them.
on which message should I be setting the new positions?
OnSizing, OnSize, EXITSIZEMODE,WINDOWPOSCHANGING, WINDOWPOSCHANGED?
any ideas?
Nick
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm