Home > Back-end >  [for] let the window itself loses focus (active)
[for] let the window itself loses focus (active)

Time:10-05

Consult everybody a great god, and is there any way to set up a button on the window, and then click on the left in the window loses focus, now I realize is application. Minimize; Then other programs for new gains focus window to simulate some key operation, and then application. Restore; Is really feel a little fake,,,, and minimize, restore have animation effects,

CodePudding user response:

Other programs for new focus to the window of the call BringWindowToTop (HWND) calculate

CodePudding user response:

Also can try sending WM_KILLFOCUS message

CodePudding user response:

Thank sololie, news the way I've tried, but failed, and I just don't want to get other window handle, so use of the method of simulation button, thank you, see: are there any other option?

CodePudding user response:

Is there any other way, oneself the top first,

CodePudding user response:

BringWindowToTop can trash, such as one other programs such as calculators, get it HWND, then your program called BringWindowToTop (HWND) calculator, the calculator will get focus and placed at the top, you are naturally loses focus the
  • Related