Waitrud Weber’s blog

things and reminders for memories

3d: Print symbol Before confirmation.

vLine has c1 which can be printed on the screen.

Program can not draw well, which is usually because we try to print before initialization.

 

symbol in British

3. 

a letter, figure, or sign used in mathematics, science, music, etc, to represent a quantity, phenomenon, operation, function, etc

 

661 :// customized from GamePaint_009
662 ://
663 ://
664 ://
665 ://
666 :void GamePaint_011(HDC hDC, vLine* line ) {
667 :
668 : int scale_2 = 30;
669 : static RECT rect_2, rect;
670 :
671 : MoveToEx(hDC, (int)line->p1->x, (int)line->p1->y, NULL);
672 : LineTo(hDC, (int)(line->p2)->x, (int)(line->p2)->y );
673 :
674 : SetRect( &rect, (int)line->p1->x - scale_2, (int)line->p1->y - scale_2, (int)line->p1->x + scale_2, (int)line->p1->y + scale_2 );
675 : DrawText( hDC, TEXT( line->c1 ), -1, &rect, DT_NOCLIP );
676 :
677 : SetRect( &rect_2, (int)line->p2->x - scale_2, (int)line->p2->y - scale_2, (int)line->p2->x + scale_2, (int)line->p2->y + scale_2 );
678 : DrawText( hDC, TEXT( line->c2 ), -1, &rect_2, DT_NOCLIP );
679 :}
680 :
681 :
682 :

My pleasure if you download the below.

https://github.com/WaitrudWeber/source_zip/blob/master/display-20190514.zip