Home > Software engineering >  How to use MFC to achieve dynamic curve display window
How to use MFC to achieve dynamic curve display window

Time:10-04

As title, is now developing a PC, based on the serial port communication, hope more window shows multiple curve at the same time (such as 10), a single window curve shows that have been implemented, consult a great god more than how to do now, thanks in advance!

CodePudding user response:

TeeChar controls

CodePudding user response:

A new multiple Windows, the data distribution to each window

CodePudding user response:

If each process is the same as the curve, you can encapsulate curve and a child window, and then can call

CodePudding user response:

Hope this article will be helpful to you
https://zhidao.baidu.com/question/2116106506101977227.html

CodePudding user response:

Define a serial port communication class, only responsible for receiving data,
This class can be a thread, or timer, time to get the data from the machine,

Then PostMessage, put the data table, in turn, to 10 window, and then in the window class to add the custom message,
According to curve,

CodePudding user response:

A window shows multiple curve, the curve is the best graphic controls, it will be very convenient,

Different controls showed different curve! Throw the message can be different

GetView1 () - & gt; 1 PostMessage data, the curve of the corresponding interface WMU_MSG1 1 1 controls make action
GetView1 () - & gt; PostMessage data 2, WMU_MSG2 corresponding interface 1 curve 2 controls make action


GetView2 () - & gt; PostMessage data 1, WMU_MSG1 corresponding interface 2 curve 1 controls make action
GetView2 () - & gt; PostMessage data 2, WMU_MSG2 corresponding interface curve 2 control action

CodePudding user response:

Window subclassing curve, and, then, according to need, according to the arrangement,,

Curve of curve 1 2 3

Curve 4 curve 5 6

And so on,,
  • Related