我需要处理哪些窗口消息来处理窗口非区域上的鼠标点击? [英] What window message do I need to handle in other to handle mouse clicks on non region of a window?

查看:104
本文介绍了我需要处理哪些窗口消息来处理窗口非区域上的鼠标点击?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要处理哪些窗口消息来处理窗口非区域上的鼠标点击?具体来说,我需要知道用户何时右键单击选项卡控件,以便我可以显示一个浮动菜单,用户可以在moilla firefox中关闭一个或多个选项卡。

What window message do I need to handle in other to handle mouse clicks on non region of a window? Specifically I need it to know when a user right clicks on a tab control so that I can display a floating menu with which the user can close one or more tabs as it is done in moilla firefox.

推荐答案

这些是特殊的单独非客户端消息: http://msdn.microsoft.com/en-us/library/windows/desktop/ms645618%28v=vs.85%29.aspx [ ^ ]。



(在上面引用的MSDN文章中,查看名为 WM_NC * 的所有消息的左侧部分。)



但是,您应该了解客户区是什么: http://msdn.microsoft.com/en-us/library/windows/desktop/dd162743%28v=vs.85%29.aspx [<一个href =http://msdn.microsoft.com/en-us/library/windows/desktop/dd162743%28v=vs.85%29.aspxtarget =_ blanktitle =New Window> ^ ]。



特别是,标签区域不是非客户端。非客户区域是客户端矩形和外部窗口边界之间的所有内容:边框,标题栏...



-SA
Those are special separate non-client messages: http://msdn.microsoft.com/en-us/library/windows/desktop/ms645618%28v=vs.85%29.aspx[^].

(In the MSDN article referenced above, look at the left part for all messages named as WM_NC*.)

However, you should understand what the client area is: http://msdn.microsoft.com/en-us/library/windows/desktop/dd162743%28v=vs.85%29.aspx[^].

In particular, tab areas are not non-client. Non-client area is everything between client rectangle and outer window bounds: borders, title bars…

—SA


这篇关于我需要处理哪些窗口消息来处理窗口非区域上的鼠标点击?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆