当前位置:网站首页>A circle is displayed and can be moved
A circle is displayed and can be moved
2022-07-24 19:42:00 【51CTO】
This question is simple , but “ Five zang organs ”.
1, demand
a, Display circle
b, Move circle
2, Outline design
a, The center and radius of the circle are known , Display circle
b, Click the circle to start moving , Click end move again
3, Detailed design
a, If the distance from a point to the center of the circle is equal to ( Less than ) radius , Then on the circle ( Inside the circle ).
b, It is displayed with dotted lines during the movement .
4, code
1, Create a new single document program Yuan.
2,CYuanView Add three variables in :
CPoint m_pt;// center of a circle
int m_iR;// radius
BOOL m_bMove;// Is it moving
3, Initialization in constructor .
4, Display circle
5, Move
Known problems :
Cannot cancel after the move starts .
Source code : http://pan.baidu.com/share/link?shareid=574458&uk=4280148702
边栏推荐
- Machine learning_ Softmax function (multi classification problem)
- Analysis of the basic concept of digital warehouse
- Environment preparation of Nacos configuration center
- Channel state information (CSI) conjugate multiplication denoising method
- Cmake series tutorial 1- initial cmake
- Unity2d~ game practice of decrypting Zhou mu (completed in three days)
- MySQL8.0学习记录20 - Trigger
- Implement a proxy pool from 0
- 872. Maximum common divisor
- Introduction to WDK development 1- basic environment construction and the first driver (VS2010)
猜你喜欢

Summary of articles in 2020

Day 9 (this keyword and experiment)
![[resolved] CVC datatype valid. 1.2.1: '' is not a valid value for 'ncname'.](/img/27/ae15e553eba99acf19beb93a3e9939.jpg)
[resolved] CVC datatype valid. 1.2.1: '' is not a valid value for 'ncname'.

Pay close attention! List of the latest agenda of 2022 open atom open source Summit

01 | 开篇词:手把手教你搭建一个博客网站

strlen函数剖析和模拟实现

Common methods of string class

How to export map files tutorial

How to encrypt your own program with dongle

Rotation matrix derivation process
随机推荐
02 | 环境准备:如何在windows下安装和配置一个基本的php开发环境?
2019 Hangzhou Electric Multi School Game 7 6651 final exam [Law + thinking]
Process pool and fallback function [easy to understand]
Decision tree_ ID3_ C4.5_ CART
SSL Error: Unable to verify the first certificate
pyhanlp安装教程
Rotation matrix derivation process
Pyhanlp installation tutorial
Sword finger offer 42. maximum sum of continuous subarrays
Sword finger offer 52. The first common node of the two linked lists
Look at the interface control devaxpress WinForms - how to customize auxiliary function properties (Part 2)
Cesium uses czml to implement dynamic routes
Conversion between VC string and timestamp
6.0 holes stepped by fragment request permission in the system
871. Sum of divisors
【校招面经】8道指针面试真题,快来检测自己掌握了几道。
Taokeeper environment setup
文献阅读:GoPose 3D Human Pose Estimation Using WiFi
拿捏C指针
Original reverse compensation and size end