如何在分层窗口上显示控件(C ++ Builder) [英] How to display controls on layered window (C++ Builder)

查看:238
本文介绍了如何在分层窗口上显示控件(C ++ Builder)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!对不起我的英语。

使用C ++ Builder我创建了一个基于.png图像的窗口(使用函数SetWindowLong(),UpdateLayeredWindow等)。

一切正常。但我有一个问题 - 我在表单上放置的所有控件都不可见。

我读到解决方案是使用一种特殊的控件绘制方式。但是什么?

请帮帮我 - 告诉我如何在分层窗口上显示按钮,文本字段,标签和其他控件?

谢谢!

Hello! Sorry for my English.
With using C++Builder I have created a window that is based on the .png image (using the function SetWindowLong (), UpdateLayeredWindow, etc.).
All works fine. But I have a problem - all the controls that I put on the form is not visible.
I read that solution is to use a special way of painting of controls. But what?
Help me please - tell me how to display the buttons, text fields, labels and other controls on a layered window?
Thanks!

推荐答案

尝试使用BringToFront()或SendToBack()方法。

Try to use BringToFront() or SendToBack() methods.
myPixFrame->SendToBack();
myTextBox->BringToFront();


这篇关于如何在分层窗口上显示控件(C ++ Builder)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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