0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

MFC Paint alike application

Last updated at Posted at 2023-12-24

MFC building "Paint" alike application

I realize that MFC makes it possible to build up the software, which exactly resemble Paint on Windows, so let me explain how to expand own your Paint alike application in this article.

These following enviroments are on what i verified a successful debugging and execution.

  • Visual Studio 2022 Community
  • MFC Dialog
  • C++

01; Add Windows-Message functions

To handle movement of mouse, these 4 functions are prerequisites:
you can add from above menus;

  • OnPaint()
  • OnMouseMove()
  • OnLButtonDown()
  • OnLButtonUp()

02; The flowchart

To make it clear how processes go on, here's flowchart.

03; Programs

Since the entire programs are too long, i only extracate important parts.
04. OnPaint1.png
05. OnLButtonDown.png
06. OnMouseMove.png
07. OnPaint2.png
08. OnLButtonUp.png

04; Let do yourself

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?