如何使用资源编辑器创建背景以将按钮保留在其上 [英] How to create a background to keep button on it using resource editor

查看:21
本文介绍了如何使用资源编辑器创建背景以将按钮保留在其上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是资源编辑器的新手,我创建了两个按钮next"和previous",以使用 CreateDialog 函数和资源编辑器在我自己创建的窗口中更改页面.

I am new to work on resource editor i have created two buttons next and previous to change the page in my own created window using CreateDialog function and resource editor.

现在我想创建一个条带,我将把它放在我的窗口底部,我想在该条带上放置两个按钮NEXT"和PREVIOUS",并且该条带可以着色(不是白色).我想这样做是因为现在我的按钮显示在我创建的窗口上的图像上,看起来很奇怪,所以我希望我的按钮出现在彩色条上(就像你在预览窗格上看到的 .pdf 文件预览一样) .

Now i want to create a strip which i will put at the bottom of my window and I want to put the two buttons "NEXT" and "PREVIOUS" on that strip and that strip can be coloured (not be white). I want to do so because right now my buttons are on the display of image on my created window and which looks odd so i want my buttons to appear on the colourful strip(just like as you can see for .pdf files preview on preview pane) .

任何想法如何实现它?我尝试使用工具箱中的COUSTOM CONTROL"选项并想为其着色并想在其上放置按钮,但是当我运行该程序时,我发现之前在预览窗格中显示图像但现在它不起作用(我意思是将COUSTOM CONTROL"放在我的 IDD_MAINDIALOG 上,图像的预览不再起作用,这是以前起作用的,但是当我在 IDD_MAINDIALOG 上放置MFC BUTTON"(只是为了检查它是否起作用??)然后它有效(我的意思是在我的窗口上显示由于COUSTOM CONTROL"而停止工作的图像没有问题))

Any ideas how to accomplish it ?? I tried to use "COUSTOM CONTROL" option from the toolbox and wanted to colour it and wanted to put button on it but when i run the programme i found that before i had an image display at preview pane but now it is not working(i mean on putting the "COUSTOM CONTROL" on my IDD_MAINDIALOG the preview of the image don't work any more which was working before but when i put "MFC BUTTON" (just to check if it works or not ??)on my IDD_MAINDIALOG then it works(i mean there is no problem in dispaying the image on my window which had stopped working due to "COUSTOM CONTROL") )

那么任何想法如何完成这个条带创作??

So any ideas how to accomplish this strip creation ??

推荐答案

也许将图像放在图片控件中比将按钮放在条中更容易.

Maybe it would be easier to put the image inside a picture control rather than putting the buttons inside a strip.

这篇关于如何使用资源编辑器创建背景以将按钮保留在其上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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