How to create a background to keep button on it using resource editor

痴心易碎 提交于 2019-12-20 06:00:46

问题


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.

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) .

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 ??


回答1:


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



来源:https://stackoverflow.com/questions/18097646/how-to-create-a-background-to-keep-button-on-it-using-resource-editor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!