One-time initialization of an ActiveX control in CFormView-derived class
-
I can't do this initialization in OnCreate because the ActiveX control isn't ready yet ( its methods fail ). I usually do this in OnIdle with a boolean value to make sure I did it only once, but CView doesn't have OnIdle. What's the best way to do this?
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal
-
I can't do this initialization in OnCreate because the ActiveX control isn't ready yet ( its methods fail ). I usually do this in OnIdle with a boolean value to make sure I did it only once, but CView doesn't have OnIdle. What's the best way to do this?
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition. Blaise Pascal
Try to do this in
OnInitialUpdate
.«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++)