I m 处理MINmetINFO 类似:
case WM_GETMINMAXINFO:
{
LPMINMAXINFO p_info = (LPMINMAXINFO)lParam;
int total_border_width = 2 * GetSystemMetrics( SM_CXFRAME );
int total_border_height = 2 * GetSystemMetrics( SM_CYFRAME ) +
GetSystemMetrics( SM_CYCAPTION ) - GetSystemMetrics( SM_CYBORDER );
POINT min,max;
min.x = d->min_w > 0 ? d->min_w + total_border_width : p_info->ptMinTrackSize.x;
min.y = d->min_h > 0 ? d->min_h + total_border_height : p_info->ptMinTrackSize.y;
max.x = d->max_w > 0 ? d->max_w + total_border_width : p_info->ptMaxTrackSize.x;
max.y = d->max_h > 0 ? d->max_h + total_border_height : p_info->ptMaxTrackSize.y;
p_info->ptMinTrackSize = min;
p_info->ptMaxTrackSize = max;
}
break;
这项决议规定,它始终不.于我对X的希望,而关于Y. Doing + 4 和 + 5 的5个餐厅固然如此,但这似乎是一种可怕的想法。 是否有人错?
增 编