如何绘制餐厅表模式-mfc C ++ [英] How to draw a restaurant table schema -mfc C++

查看:67
本文介绍了如何绘制餐厅表模式-mfc C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须在用户指定区域宽度和长度之后绘制一个x轴和y轴,然后从数据库中获取所有餐馆表并根据它们的坐标绘制它们。数据库..

任何人都可以帮助绘制图形以及如何在调整主对话框大小时修改它吗?



语言是mfc c ++

visual studio 2012



感谢



我尝试了什么:



i在绘图方面没有很多经验,但仍然没有达到令人满意的解决方案

i have to draw an x-axis and y-axis generated after the user specifying the area width and length ,
then to get all restaurant tables from database and plot them according to their coordinates in data base ..
can anyone help in the drawing of graph and how it can be modified if resizing of main dialog takes place ?

the language is mfc c++
visual studio 2012

being thankfull

What I have tried:

i don't have a lot of experience in drawing and still i didn't reach a satisfiable solution

推荐答案

您需要了解绘制过程:它是一个函数调用,其中所有的东西都是在所谓的设备上下文中绘制的,您可以将其想象成纸张。它可以是屏幕或打印机。



为此,有很多API-功能和对象



这是一篇很好的文章,展示了 GDI绘图

You need to understand the draw process: it is a function call in which all your stuff is drawn on a so called device context which you can imagine as piece of paper. It can be the screen or a printer.

For that there a lot of of API-functions and objects in Windows and the MFC.

Here is a fine article which shows the basics of GDI Drawing
.


这篇关于如何绘制餐厅表模式-mfc C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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