Setforegroundwindow setactivewindow what's the difference (pinvoke)?

Can someone explain to me what the difference is with setactivewindow with setforegroundwindow (using pinvoke from www.pinvoke.net/#

For a first glance, you can tell me that he set the active window and the other got to the window, but ... hey! the first also brings the desktop to the forefront, doesn't it? Therefore, if I want to leave the window in front of all the windows and make it active (because I want to work on it, I still do not see another way), which should I use?

Hope i write logically, sorry for english.

+3
source share

Source: https://habr.com/ru/post/1792789/


All Articles