Create Window larger than desktop (display resolution)

后端 未结 9 2058
旧时难觅i
旧时难觅i 2021-01-12 03:47

I need to resize a window larger than screen resolution or size of desktop, programmatically & preferably also manually.

Since MS-Windows XP/Vista disallows a wi

9条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-12 04:43

    You can do something like the following code in your WinProc();

    case WM_GETMINMAXINFO:
        {
            LPMINMAXINFO lpmmi = (LPMINMAXINFO)lParam; 
            GetWindowRect(GetDesktopWindow(), &actualDesktop);
            lpmmi->ptMaxTrackSize.x = 3000;// set the value that you really need.
            lpmmi->ptMaxTrackSize.y = 3000;// set the value that you really need.
        }
        break;
    

    An application can use this message to override the window's default maximized size and position, or its default minimum or maximum tracking size.

提交回复
热议问题