是否有SC_CLOSE的.NET事件? [英] Is there a .NET event for SC_CLOSE ?
本文介绍了是否有SC_CLOSE的.NET事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以,问题是,.NET是否公开了一个处理WM_SYSCOMMAND消息的事件 SC_CLOSE [ ^ ]?
它看起来不是,我必须覆盖WndProc方法,我'由于其他原因,我已经做了。
Marc
解决方案
你是对的:没有。专门针对WM_SYSCOMMAND的.NET事件,所以你必须像你一样覆盖WndProc! :笑:
我猜他们不能涵盖一切......:D
Heh, I feel like a newbie asking this question, but I can''t find anything googling, and I''m surprised there isn''t.
So, the question is, does .NET expose an event for handling the WM_SYSCOMMAND message SC_CLOSE[^]?
It would appear not, and I have to override the WndProc method, which I''m already doing for other reasons.
Marc
解决方案
You are right: there is no .NET event specifically for WM_SYSCOMMAND, so you will have to override WndProc as you are doing! :laugh:
I guess they can''t cover everything...:D
这篇关于是否有SC_CLOSE的.NET事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文