[Start learning MFC] The first MFC job-hitrat (semi-finished products)

Source: Internet
Author: User

 

Seeing that someone has made Tetris, it's called worship,

I have been learning MFC for a while. I usually work on it with the tutorial.Code.

I suddenly thought about doing something to review what I learned. So I thought of the mouse game.

Assume that a 3*3 button array is generated, the image is loaded with loadbitmap, and then the random number is used.

Place a buttonThe pattern is changed to a mouse, and the others become obstacles. Use timer to set the appropriate time from

Update the function repeatedly. If you hit the mouse correctly, you will receive extra points.

It seems that it is not difficult to think about it. It can be done to make it really depressing. There will be endless problems when a button is loaded with bitmap,

And it's still running, so I can't do it for cainiao, so I have the lite version below,

It is simulated by changing the text of the button. The simulation is successful, and then the modifications are made to complete loading.

Bitmap.

Dad is back watching TV ~~ Unable to concentrate, continue tomorrow ~

Don't laugh when you read this spam ~ (@ ^ _ ^ @)~

Ah, almost none involvedAlgorithmSome basic MFC operations are not good. It seems that the learning effect is not satisfactory.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.