Thomas
2003-10-24 12:24:31 UTC
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
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