Skip to content

Commit

Permalink
update host window size in SetWindowPos
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusU authored and evmar committed Sep 23, 2024
1 parent efc8698 commit da79608
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions win32/src/winapi/user32/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,11 @@ pub async fn SetWindowPos(
};
dispatch_message(machine, &msg).await;

let window = machine.state.user32.windows.get_mut(hWnd).unwrap();
let menu = true; // TODO
let (width, height) = client_size_from_window_size(window.style, menu, cx as u32, cy as u32);
window.set_client_size(&mut *machine.host, width, height);

true
}

Expand Down

0 comments on commit da79608

Please sign in to comment.