Home > Software engineering >  SetWindowspos function
SetWindowspos function

Time:09-16

Be consulted in the Windows 7 system I use setWindowpos move the window to the middle don't know why when the Windows 7 system lock screen after a period of time was moved to relative to the intermediate position of the main interface window will move to the main interface of the upper left corner is (0, 0) position

CodePudding user response:

Main interface of the output log window position & amp; After the lock screen size has changed?
Use CenterWindow?

CodePudding user response:

reference 1st floor zgl7903 response:
output log, look at the window of the main interface position & amp; After the lock screen size has changed?
Use CenterWindow?
I am a direct setwindowpos all the dialog to move to the main interface of the mobile window is a top-level window this cannot use the main window is the window to the next level in the function?

CodePudding user response:

https://docs.microsoft.com/en-us/previous-versions/a1yzfz6d (v=vs. 140)
CenterWindow parameter is want to in the reference window


CodePudding user response:

You mean the lock screen back position changed ~ your window

CodePudding user response:

reference 4 floor 7-eleven's response:
what do you mean lock screen back your window position changed ~
yes.

CodePudding user response:

refer to fifth floor come home drunk dye response:
Quote: refer to 4th floor 7-eleven's response:
what do you mean lock screen back your window position changed ~
yes,

You may need to check your code, what is the message/notice trigger you call SetWindowPos/MoveWindow change the position of the window,
  • Related