开发者

change minimize effect in C#

开发者 https://www.devze.com 2023-01-09 20:50 出处:网络
I\'m trying to change the default windows minimize effect with a C# winforms app. I have no idea where to start.

I'm trying to change the default windows minimize effect with a C# winforms app.

I have no idea where to start.

Maybe I should set some kind of hook or something?

I just need to know, when a window开发者_开发技巧 likes to be minimized, the minimizing itself is no problem.

Anyone having any ideas??


This CodeProject article shows how to create a Global System Hook in .NET.

http://www.codeproject.com/KB/system/globalsystemhook.aspx

Basically what you will want is this:

http://bytes.com/topic/c-sharp/answers/241866-capturing-onminimize-event

Except using a global system hook.


You can use SetWindowsHookEx to set a WH_CALLWNDPROC hook I think you will get the SC_MINIMIZE message.

Also take a look at this code project post to see if it has what you need


You can use the following library to detect when a windows is being minimized: Using Window Messages to Implement Global System Hooks in C#

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号