need help on setting state flags
-
I am relatively new to programming and i need help on coding for state flags. my problem is: I want to set a state flag which sort of act as a switch for my onpaint() to be executed after my dialog has beem accessed in SDI. How do i code that line in my dialog and Onpaint(). Also, by doing this, will my onpaint() be able to access the updated values in the dialog? (as i need these values in order to draw).will greatly appreciate any kind help.
-
I am relatively new to programming and i need help on coding for state flags. my problem is: I want to set a state flag which sort of act as a switch for my onpaint() to be executed after my dialog has beem accessed in SDI. How do i code that line in my dialog and Onpaint(). Also, by doing this, will my onpaint() be able to access the updated values in the dialog? (as i need these values in order to draw).will greatly appreciate any kind help.
If I understand your question, you need a member variable in your
CView
-derived class. That member variable can then be accessed/changed in any of the methods of the derived class.
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
-
If I understand your question, you need a member variable in your
CView
-derived class. That member variable can then be accessed/changed in any of the methods of the derived class.
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
yah something like that, do I add it as member variable to both view and all dialog classes using the "add member variable" in the class view tab and of type:boolean and public? Also , i have another problem: i need the current values of the dialog in order to draw to SDI view, but first i want to capture these values in the SDI doc class, how do i code that assumming the values needed are length, breadth from dialog A. The dialogs are modal.