Discussion:
OnGetMinMaxInfo problem
(too old to reply)
Thomas
2003-10-24 12:24:31 UTC
Permalink
Hi,
I added an OnMinMaxInfo() function to my dialog so i can set the minimum
tracking width and height for my dialog,
I added this prototype to my dialog class:

afx_msg void OnGetMinMaxInfo(MINMAXINFO* lpMMI);

Then I added this function to set the min and max values:

void CMessDlg::OnGetMinMaxInfo(MINMAXINFO* lpMMI)
{
POINT min;
min.x = 200;
min.y = 200;
lpMMI->ptMinTrackSize = min;
CDialog::OnGetMinMaxInfo(lpMMI);
}

It compiles but i can still resize the dialog to a smaller width/height,
Any help would be apreciated :)
Thx in advance,
Thomas
Thomas
2003-10-24 12:33:02 UTC
Permalink
Post by Thomas
Hi,
I added an OnMinMaxInfo() function to my dialog so i can set the minimum
tracking width and height for my dialog,
afx_msg void OnGetMinMaxInfo(MINMAXINFO* lpMMI);
void CMessDlg::OnGetMinMaxInfo(MINMAXINFO* lpMMI)
{
POINT min;
min.x = 200;
min.y = 200;
lpMMI->ptMinTrackSize = min;
CDialog::OnGetMinMaxInfo(lpMMI);
}
It compiles but i can still resize the dialog to a smaller width/height,
Any help would be apreciated :)
Thx in advance,
Thomas
After an hour of extra research i solved the problem,
thx anyway :o)

Loading...