I created a dialog that has sort of a "view" based on tutorial here.The class for "view" i called it COpengl for drawing. I have some controls on the dialog. How do i get the COpengl class (or rather the OnPAint() in this class)to retrieve the current values from the dialog needed for drawing?