Questions tagged [movewindow]

14 questions
7
votes
3 answers

Can I move the pygame game window around the screen (pygame)

In the game I'm making, I'm trying to move the window around the screen for a mini game (don't ask) and I've tried what I saw own threads and only found 1 x = 100 y = 0 import os os.environ['SDL_VIDEO_WINDOW_POS'] = "%d,%d" % (x,y) import…
Won't Tell
  • 71
  • 1
  • 2
2
votes
1 answer

WPF C# MoveWindow issue under Windows 11

I have an application with at least 2 separate windows. The secondary window is too far from the PC to use the mouse, so I have a method that temporarily brings that specific window to the current main display, changes are done, then the window is…
Franck E
  • 629
  • 8
  • 26
2
votes
2 answers

Effect of MoveWindow over ListView Control: why column headers hides away after calling the function?

I have a dialog box with a listview control (lvc) in it. Because there are many editbox before lvc( 57 controls including lvc ), lvc is out of the screen. So i have to make a vertical scroll bar. Vertical scroll bar: Range : 0-250 every…
Sanmveg saini
  • 744
  • 1
  • 7
  • 22
1
vote
0 answers

Question about SetParent API, it doesn't work on Windows 11

Good evening everyone So sorry for my mediocre english I have a question about the SetParent API. When I run the window on Windows 10, it works correctly and contains any program I want But when the program is executed on Windows 11, it does…
1
vote
0 answers

How can you size an application, i.e a game while it is in fullscreen

im trying to size a game to a specific resolution value, like 1280,720, when the game is fullscreen. The problem is, that my code works perfectly when the game is already in window mode. If the game is in fullscreen then my code doesnt work. My Code…
1
vote
1 answer

MoveWindow does not scale the window when moving to a different screen

I have a Windows application with floating windows. I am running it on a multi-monitor setup (FHD, 4K). The application is marked as system-aware, so we pick the current DPI value for the primary monitor and scale according to that. After that, the…
A9S6
  • 6,575
  • 10
  • 50
  • 82
1
vote
1 answer

Effect of MoveWindow in EnumChildWindows over listview inside the Dialog Box: Why ListView Header is not correctly scrolling

I have a listview control (lvc) and it is inside a DialogBox(dbx) and that dbx also has a vertical scroll bar. Whenever the scrollbar is scrolled EnumChildWindows is called to enumerate all the child window of the dbx. The callback function contains…
Sanmveg saini
  • 744
  • 1
  • 7
  • 22
1
vote
0 answers

SetWindowPos not moving or resizing window

When I call SWP to try and move a resize a specific window. It does not move or resize. SetWindowPos(hWndWindow, NULL, 0, 0, 500, 500, SWP_NOZORDER); The window handle is valid. I tried both getting the handle with FindWindow and by manually…
John
  • 5,942
  • 3
  • 42
  • 79
0
votes
1 answer

WinAPI SetWindowPos not working for simple apps like notepad and calc

I develop on Windows 10. I want to move and resize an external application. I tried to make it work first with notepad and calculator. But, whatever I do the notepad/cal do not move or resize. I tried using SetWindowPos, UpdateWindow and MoveWindow…
theateist
  • 13,879
  • 17
  • 69
  • 109
0
votes
0 answers

Move Borderless Window Via PowerShell, VBScript, or Command Line Tool

I have a three monitor setup (total resolution 5760x1200) and I run certain applications sized to span two of those monitors (3840x1200). These applications use borderless windows so I can't move them by simply dragging them. By default these…
Harry Muscle
  • 2,247
  • 4
  • 38
  • 62
0
votes
0 answers

MoveWindow doesn't do anything on DeSmuME's Window

Im doing a basic test MoveWindow(handle, 0, 0, 1280, 720, true) on DeSmuME's process and it results in no changes at all, I at least expected its X/Y pos to change to 0 (top left of the screen), but nope, nothing at all, whats strange though is its…
user10641370
0
votes
1 answer

Visual Basic & MoveWindow sending external app window way off screen

I'm trying to position a couple of external windows from within my application but either end up with just a piece of the title bar on screen near the top left or the window goes far to the right and ends up at x = 32767 The function declarations…
IanJF
  • 1
0
votes
0 answers

restore window to specific locaiton on screen c# (console application)

I am wondering how can I restore application window to specific location on the screen. I did managed to write some code, but somehow I do have a feeling that there must be and easier and more efficient way to do it programaticaly... as my current…
Arcadio R
  • 21
  • 3
-1
votes
2 answers

Move borderless form with right mouse button in Delphi

I have this code from the internet to drag a borderless form by holding the Left mouse button down: procedure TForm6.Image1MouseDown(Sender: TObject; Button: TMouseButton;Shift: TShiftState;X,Y: Integer); const SC_DRAGMOVE = $F012; begin if…
JimPapas
  • 715
  • 2
  • 12
  • 27