How to add control from userdefined class to dialog window.
-
Hi, I write dialog box application using MFC. my questions is after run the application we are able to view the dialog box there is no problem. when user click the ok button in the dialog box then i have call userdefind class call MYclass. From the MYclass I need to create one ProgressBar control and placed to dialog box. Please clarify me how to create progressBar control from Myclass. Thanks.
-
Hi, I write dialog box application using MFC. my questions is after run the application we are able to view the dialog box there is no problem. when user click the ok button in the dialog box then i have call userdefind class call MYclass. From the MYclass I need to create one ProgressBar control and placed to dialog box. Please clarify me how to create progressBar control from Myclass. Thanks.
By reading your description, it seems your design is a bit wrong. In general, you shouldn't let other classses manipulate the controls on your dialog. What are you trying to achieve at a higher level ? Why does your class need to add a progress bar on your dialog directly ?
Cédric Moonen Software developer
Charting control [v2.0] OpenGL game tutorial in C++