| |

VerySource

 Forgot password?
 Register
Search
View: 756|Reply: 3

What function is used to activate a window

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-2 22:30:01
| Show all posts |Read mode
I know the handle of this window

Reason: Often the focus of the window is shifted because of accidentally touching the mouse

So I want him to switch back automatically and activate this window I know the handle

No effect with SHOWWINDOW, please master

Can't serve the purpose of transfer after running :: ShowWindow (handle, SW_SHOW);
Reply

Use magic Report

0

Threads

70

Posts

42.00

Credits

Newbie

Rank: 1

Credits
42.00

 China

Post time: 2020-1-2 23:27:01
| Show all posts
SetFocus
Reply

Use magic Report

0

Threads

5

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 United States

Post time: 2020-1-3 09:39:01
| Show all posts
Upstairs solution
Reply

Use magic Report

0

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-1-3 17:30:01
| Show all posts
SetForegroundWindow
BringWindowToTop
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list