Home > Software engineering >  How to obtain the current running in Windows and in all the process of the front window
How to obtain the current running in Windows and in all the process of the front window

Time:10-23

How to obtain the current running in Windows and in all the process of the front window
1, could you tell me how to get the current running in Windows and in all the process of the front window?
2, how will be the window to switch to the background, let the other a specified program shows in the front?
3, how to minimize this window,

The great god give advice or comments, please. I found in c # to achieve this kind of operation really hurt, I tried Windows API but is not very skilled with, can't ZF customers requirements is too abnormal condition I really freaked out, deliver,

CodePudding user response:

1: GetActivateWindow top-level Windows
2: want to set A window on the top floor, for example, A handle is hWnd, you can: : SetWindowPos (m_hWnd, HWND_TOPMOST, rtClient. Left, rtClient. Top, rtClient. The Width (), rtClient. Height (), SWP_SHOWWINDOW);
3: MoveWindow aspect of his set to 0 0
  • Related