Home > Software engineering >  Beginners MFC, help predecessors, how the interface, the hope can give some tips (especially in the
Beginners MFC, help predecessors, how the interface, the hope can give some tips (especially in the

Time:09-24

Thanks for elder people, give younger brother a little hint,

CodePudding user response:

What do you mean, it's not already shown in MFC

CodePudding user response:

Draw a line form directly, moveto, lineto

CodePudding user response:

reference 1st floor TxyITxs response:
what do you mean, not a has been shown in MFC
image is ready, I want to do a same, don't know how did it get its form,

CodePudding user response:

With dc line painting form, moveto lineto, textout output text in the corresponding position,

CodePudding user response:

reference 4 floor mmcanyu response:
with dc line painting form, moveto, lineto textout output text in the corresponding position,
understand, thank you senior counsel

CodePudding user response:

 
//don't do form with line drawing, it's not science.
//do with rectangular box
//your chart shows the content of the
//the table it can be said

CRect xRect [21].
Cstrings xStr [21].

//initialize the table for
,0,1200,40 xRect [0]. SetRect (0);
XRect [1]. The SetRect,40,100,70 (0);
XRect [2]. The SetRect,40,1200,70 (100);
XRect [3]. The SetRect,70,100,100 (0);
XRect [4]. The SetRect,70,1200,100 (100);
.
XRect [20]. SetRect (... );

//prepare data below
XStr [0]="data space error analysis";
XStr [1]. The Format (" number % % s Lx (X). The 2 f Ly. (X) % 2 f Lz. (X) % 2 f Lx. (Y) % 2 f Ly. (Y) % 2 f Lz. (Y) % 2 f Lx. (Z) % 2 f Ly. (Z) % 2 f Lz (Z) %. 2 f ",... );
XStr [2]="measurement information";
XStr [3]=. The Format (" X stroke measurement points % d % d % d Y trip points stroke % d % d Z measurement points % d ",... );
XStr [4]="instrument position";
.
XStr [20]=... ;

//draw table program for
for(int i=0; i<21. I++)
{
PDC - & gt; Draw3dRect (xRect [I], 0, 0).
PDC - & gt; XRect DrawText (xStr [I], [I], 0 x25);
}

CodePudding user response:

It is best to use statements controls

CodePudding user response:

LibUIDK, you worth having, specifically to deal with this kind of interface,
  • Related