I would like to override the minimize-event so that the dialog remains where it is but resizes to a fixed size (e.g. CRect( x, y, 320, 100 ) )
How is that possible?
I’ve tried this but don’t get the ” CRect( x, y, 320, 100 )”-size
void CDlg::OnSize(UINT nType, int cx, int cy){
if( nType == SIZE_MINIMIZED )
{
CPoint p;
GetCursorPos( &p );
SetWindowPos( 0, p.x, p.y, 320, 100, 0 )
return;
}
…
…
}
APe
How is that possible?
I’ve tried this but don’t get the ” CRect( x, y, 320, 100 )”-size
void CDlg::OnSize(UINT nType, int cx, int cy){
if( nType == SIZE_MINIMIZED )
{
CPoint p;
GetCursorPos( &p );
SetWindowPos( 0, p.x, p.y, 320, 100, 0 )
return;
}
…
…
}
APe