Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我先创建位图,然后是按钮并调用button->Raise().
button->Raise()
该按钮直到我将鼠标悬停在它上面才会显示,即使我为它提供了一个透明的 png 作为图像,透明度也被搞砸了,如下所示:
正如Raise() 文档所说,此功能仅适用于顶级窗口。wxWidgets 不支持重叠子窗口,并且不能在所有平台下正常工作。
您可以做的最接近您想要的是在您的父窗口上使用自定义背景,它确实会显示在您的位图按钮后面。