project problem
-
i created an SDI with several dialogs within for my project. Each time user input data into certain dialog, my Onpaint() in view class will show the image in the main window. It is more of like reading in user inputs and visualizing images at every dialog stage. Problem is, how do i control when to show the image? ie, i only want the Onpaint() to draw when dialog is receiving inputs instead of at beginning of program where of course my dialog is not activated yet. Also, i intend to put my drawing code in the various dialog.cpp files and call my those drawing fucntions in the onpaint(), is it the right approach? will appreciate if anyone can help
-
i created an SDI with several dialogs within for my project. Each time user input data into certain dialog, my Onpaint() in view class will show the image in the main window. It is more of like reading in user inputs and visualizing images at every dialog stage. Problem is, how do i control when to show the image? ie, i only want the Onpaint() to draw when dialog is receiving inputs instead of at beginning of program where of course my dialog is not activated yet. Also, i intend to put my drawing code in the various dialog.cpp files and call my those drawing fucntions in the onpaint(), is it the right approach? will appreciate if anyone can help
Within your OnPaint handler, you can test for the existence of the dialog boxes before executing your drawing code.
-
Within your OnPaint handler, you can test for the existence of the dialog boxes before executing your drawing code.