564 :// Very Thanks to: http://www.informit.com/articles/article.aspx?P=328647&seqNum=3
...
688 :// customized from GamePaint_009
689 ://
690 ://
691 ://
692 ://
693 :void GamePaint_011(HDC hDC, vLine* line ) {
694 :
695 : int scale_2 = 30;
696 : static RECT rect_2, rect;
697 :
698 : MoveToEx(hDC, (int)line->p1->x, (int)line->p1->y, NULL);
699 : LineTo(hDC, (int)(line->p2)->x, (int)(line->p2)->y );
700 :
701 : if ( line->c1 != nullptr ) {
702 : 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 );
703 : DrawText( hDC, TEXT( line->c1 ), -1, &rect, DT_NOCLIP );
704 : }
705 :
706 : if ( line->c2 != nullptr ) {
707 : 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 );
708 : DrawText( hDC, TEXT( line->c2 ), -1, &rect_2, DT_NOCLIP );
709 : }
710 :}
711 :
712 :
713 :