What event is dispatched to the Windows Forms window when its button is clicked on the taskbar?

When a user clicks the title bar / window button on the taskbar, which .NET event (or Windows API message) is sent to the window?

I am using C # /. NET 2.0 / Windows Forms.

thank

+3
source share
2 answers

To detect messages sent to the window at different points, you must use Microsoft Spy ++. On my car, it is located along the following path

"D:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\spyxx.exe" 

Note. I am using a 64 bit OS, therefore (x86).

, , , XP Windows 7. / , , .

WM_ACTIVATE ( ) WM_WINDOWPOSCHANGING WM_WINDOWPOSCHANGED .

- ManagedSpy, , XP, , , Windows 7 64bit, ( !). http://msdn.microsoft.com/en-us/magazine/cc163617.aspx

+2

, , . , .

, , , , , , . , , , . .

0

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


All Articles