如何显示信息。当鼠标移动到禁用按钮时 [英] How to display info. when mouse moves over a disabled button

查看:152
本文介绍了如何显示信息。当鼠标移动到禁用按钮时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



如果没有共享源代码,它可能不是最适合的查询,但如果有人能够回答那么它将真的有用。



当鼠标/光标悬停在禁用按钮上时,我正在寻找的是一种显示短信弹出窗口的方式(有点像我们在使用工具提示时得到的内容)。



限制条件:



1.)不应该是MFC方法

2.)CPP必须



希望有人可以指导我。即使是最小的示例代码也会非常感激。



美好的一天



Abby

解决方案

首先,请看我对这个问题的评论。



如果是C ++而不是MFC(获得摆脱MFC可能不是一个坏主意),您可以考虑使用原始Windows API并编写自己的代码。此外,您可以考虑使用C ++ / CLI而不是本机C ++,并使用非常丰富的.NET及其非常丰富的UI库。



其他可能性包括或多或少交叉平台库。请参阅我的详细答案:编写c / c ++可视化程序(跨平台)与IDE和编译器?



另见我过去的答案:

针对目标操作系统Windows和Linux的Visual Studio应用程序

如何将Visual Studio C ++编译为linux和os-mac

这个剧情计划win32的问题是什么 [ ^ ]。



-SA

Hi There,

It might not be a best suited query without sharing the source code, but if anyone can answer then it will really help.

What i am looking for is a way to display text messages pop-up (sort of like what we get while using tooltip), when mouse/cursor hovers over a disabled button.

Constraints:

1.) Shouldn't be MFC approach
2.) CPP must

Hope someone can guide me with something. Even a tiniest sample code to start with would be much appreciated.

Good day

Abby

解决方案

First of all, please see my comment to the question.

If C++ but not MFC (getting rid of MFC could be not a bad idea), you can consider using raw Windows API and writing your own code. Also, you can consider using C++/CLI instead of native C++ and use very rich .NET with its very rich UI libraries.

Other possibilities include more or less cross-platform libraries. Please see my detailed answer: writing c/c++ visual programs (cross-platform) with which IDE and compiler?

See also my past answers:
Visual Studio Application for Target OS Windows and Linux,
How to Compile Visual studio C++ to linux and os-mac,
What`s the Problem with this Plot Program win32[^].

—SA


这篇关于如何显示信息。当鼠标移动到禁用按钮时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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