使用鼠标在工作区中绘制线条,该线条应显示在一个小方框中,并在编程窗口的该工作区中显示 [英] Draw lines using mouse in the client area that should display in a small box with in that client area in programming windows

查看:81
本文介绍了使用鼠标在工作区中绘制线条,该线条应显示在一个小方框中,并在编程窗口的该工作区中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名新手,并且在编程窗口中接受了培训.老板给我的任务是用鼠标画线,并且应该显示在同一屏幕的小框中.
例如:
考虑由左上方的小矩形区域组成的屏幕.我的任务是我使用鼠标在客户区域中绘制的内容,应该在释放鼠标按钮后在该小区域中显示.
请通过发送代码的解决方案来帮助我.

预先感谢您

I am a fresher and undergone training in programming windows. My boss gave me a task to draw the lines using mouse and that should be display in the small box with in the same screen.
Ex:
Consider the screen which consists of small rectangular region at the top left. My task is whatever i draw in the client area using mouse that should be display in that small region after the mouse button is released.
Kindly help me by sending the solution for this with the code.

Thanking you in advance

推荐答案

我们不做作业:它是有原因的.在这里,您可以考虑自己被告知的内容,并尝试理解它.也可以在那里帮助您的导师识别您的弱点,并将更多的注意力放在补救措施上.

自己尝试,您可能会发现它并不像您想的那么困难!
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!


好,您的要求很简洁,因此开始编码.
您知道,这是Quick Answer:我们不会为您开发整个应用程序,但是在某些问题上我们可能会提供帮助.
如果您不了解Windows编程,那么建议您从教程开始(
OK, your requirements are neat, hence start coding.
You know, this is Quick Answer: we aren''t going to develop the whole application for you, however we may help on specific problems.
If you have no idea about Windows programming then I suggest you to start with a tutorial (Google[^] is you friend).


There is lots of help[^] available for those who search.


这篇关于使用鼠标在工作区中绘制线条,该线条应显示在一个小方框中,并在编程窗口的该工作区中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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