Home > Back-end >  Use Delphi setwindowspos resolution to other programs, lead to my own program stuck problem
Use Delphi setwindowspos resolution to other programs, lead to my own program stuck problem

Time:09-27

Is such, I wrote a small program, the outside border of the other programs, the maximum minimum, title to go to,,

 Winapi. Windows. SetParent (MabinogiWindow, _MainForm. Handle); 
SetWindowLong (MabinogiWindow - 16, GetWindowLong (MabinogiWindow, - 16), and - and - 12582913 and 8388609-262145);
SetWindowPos (MabinogiWindow, 0, 0, 0, _MainForm ClientWidth, _MainForm. ClientHeight, $4);

Then, hang the other programs from my application, I want to use FormResize events to modify the form, the size of the,
 procedure T_MainForm. FormResize (Sender: TObject); 
The begin
If MabinogiWindow & lt;> 0 then
SetWindowPos (MabinogiWindow, 0, 0, 0, _MainForm ClientWidth, _MainForm. ClientHeight,
SWP_NOMOVE or SWP_NOACTIVATE or SWP_NOOWNERZORDER or SWP_DEFERERASE);
The end;


If I am a little bit, a little pull, infinite stuck phenomenon will not result in a program, if I came a very big, so, my program will appear all sorts of disorderly jump, stuck, no response, and so on and so forth, how do I want to solve it ~

CodePudding user response:

Whether FormResize cycle call, try adding a logo runs only once
  • Related