Skip to content

On the Windows platform, there is a white space at the bottom of the full screen window #237

Closed
@wangchengcheng1992

Description

@wangchengcheng1992

window_manager_plugin.cpp

std::optional<LRESULT> WindowManagerPlugin::HandleWindowProc(HWND hWnd,
                                                             UINT message,
                                                             WPARAM wParam,
                                                             LPARAM lParam) {
  std::optional<LRESULT> result = std::nullopt;

  if (message == WM_NCCALCSIZE) {
    // This must always be first or else the one of other two ifs will execute
    //  when window is in full screen and we don't want that
    if (wParam && window_manager->IsFullScreen()) {
      NCCALCSIZE_PARAMS* sz = reinterpret_cast<NCCALCSIZE_PARAMS*>(lParam);
      sz->rgrc[0].bottom -= 3;
      return 0;
    }
   
   ...
   ...
}

sz->rgrc[0].bottom -= 3;

Can you tell me why the bottom margin of 3px should be reserved?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions