Waitrud Weber’s blog

things and reminders for memories

3D: We can't memorize vLine:

github.com

And answer might be any options or includes?

 

And we could do the below.

vLine::vLine ( ) {

	this->p1 = new vPoint();
	this->p2 = new vPoint();
}
    //
//
//
//
//
//
int bDisplayControls_wmpaint_display_threeD_proc ( HWND hWnd, HDC hDC, PAINTSTRUCT* ps, UINT uMsg, WPARAM wParam, LPARAM lParam ) {
	static vLine** l_lines = nullptr;
	static int line_num = 0;

	if ( memorized_CurveLines == 0 ) return -1;
	// if ( l_lines != nullptr ) return 2;

	printf("bDisplayControls_wmpaint_display_threeD_proc: Loop starts.\r\n");
	for( int i=0; i<10; i++) {
		vLine* line = new vLine();
		line->print();
	}
	printf("bDisplayControls_wmpaint_display_threeD_proc: Loop ends.\r\n");
}

memorized_CurveLines=1
bDisplayControls_wmpaint_display_threeD_proc: Loop starts.
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
bDisplayControls_wmpaint_display_threeD_proc: Loop ends.
WM_MESSG 004: 15 *(p_evt->uMsg):0 uMsg:15 p_evt->uMsg: 6551900 &uMsg: 6552532
WM_PAINT 005: 15 *(p_evt->uMsg):0 uMsg: 15
WM_PAINT 006: 15 *(p_evt->uMsg):0 uMsg: 15
WM_MESSG 000: hWnd 133986: uMsg 256: wParam 27: lParam 65537: canvas 4333964: btc 4333984: *(p_evt->uMsg) 256:
WM_MESSG 003: 256 *(p_evt->uMsg):256
wButtonController::Process: 256 / 15<-WM_PAINT wParam 27 lParam 65537 this->event->uMsg:6552728 *(this->event->uMsg)=256
wButtonController::WM_PAINT:
this->event->main_mode = 8
default:
memorized_CurveLines=1
bDisplayControls_wmpaint_display_threeD_proc: Loop starts.
p( 0.000000, 0.000000, 0.000000)
p( 1175469623970928800000000000.000000, 0.000000, -2.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 1088542958085411000000000000.000000, 0.000000, 1088542958085411000000000000.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
p( 0.000000, 0.000000, 0.000000)
bDisplayControls_wmpaint_display_threeD_proc: Loop ends.
WM_MESSG 004: 256 *(p_evt->uMsg):256 uMsg:256 p_evt->uMsg: 6552728 &uMsg: 6552728
WM_MESSG 000: hWnd 133986: uMsg 258: wParam 27: lParam 65537: canvas 4333964: btc 4333984: *(p_evt->uMsg) 258:
WM_MESSG 003: 258 *(p_evt->uMsg):258
wButtonController::Process: 258 / 15<-WM_PAINT wParam 27 lParam 65537 this->event->uMsg:6552728 *(this->event->uMsg)=258

github.com

Very Thanks to:

stackoverflow.com