1

I was wondering why if I set my window to 1440 x 900 explicitly:

HWND hWnd = CreateWindow("bla", "bla", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 1440/*CW_USEDEFAULT*/, 900/*CW_USEDEFAULT*/, NULL, NULL, hInstance, NULL);

When my screen is rendered it must be calling WM_RESIZE and it is passing:

    case WM_SIZE:
        screenServer.OnScreenResize( LOWORD(lParam), HIWORD(lParam) );
    break;

which comes out as 1424 x 861?

Why is that?

4

1 回答 1

1

我现在可以看到正在考虑的是我的窗口的边界:

在此处输入图像描述

于 2013-06-09T21:26:51.037 回答