7,655
社区成员
发帖
与我相关
我的任务
分享
switch (message)
{
case WM_PAINT:
if(g_bIsWide == FALSE) //&& g_bChange == FALSE)
{
RECT lpRect;
GetWindowRect(hDlg,&lpRect);
GetUpdateRect(hDlg,&lpRect,TRUE);
DrawText(hdc, L"请使用竖屏", &lpRect, NULL,DT_CENTER|DT_WORDBREAK);
}
break;
case WM_SIZE:
if((DRA::GetDisplayMode()) == -1)
{
g_bIsWide = TRUE;
}else
{
g_bIsWide = FALSE;
}
break;
}