hello, i must make a program that must let me draw a rectangle, a line or a triangle. For choosing the figure i want, i must use a modal dialog, by selecting a radio button. Well, once i select in the dialog the figure i'd like to draw.. how can i access from here to the view so it will be able to draw what i want? i know it's a simple question, but i'm just a beginner.
i know how to draw if i do it directly from the view file.
how could i access to the view file??
thank u, looking forward for ur answers.
Code:
void fig_dialog::OnRectangle()
{
....
}
i know how to draw if i do it directly from the view file.
Code:
MoveToEx( hdc, a.x, a.y, NULL );
LineTo( hdc, prev_b.x, a.y );
MoveToEx( hdc, a.x, a.y, NULL );
LineTo( hdc, a.x, prev_b.y );
MoveToEx( hdc, a.x, prev_b.y, NULL );
LineTo( hdc, prev_b.x, prev_b.y );
MoveToEx( hdc, b.x, a.y, NULL );
LineTo( hdc, prev_b.x, prev_b.y );
how could i access to the view file??
thank u, looking forward for ur answers.