How to know if a CFormView is visible?
-
Hi there! I have a derived class from CFormView, and sice this form needs to load lots of data, I would like to show a progress bar that is already in the form. If I do the load and show the progress in the OnInitialUpdate(), I cannot see the progress going! I've tried to do a PostMessage in the OnInitialUpdate, and manage the message afterwards... but no progress in sight! I also tried to do a PostMessage in the OnShowWindow when the bShow is TRUE. Again not yet visible! Does any one knows what message should I catch after the form is visible? I'm using a variable to count if its the first time I have a Paint... but it seems that its not the way to do it... Thanks for your time in advance.
-
Hi there! I have a derived class from CFormView, and sice this form needs to load lots of data, I would like to show a progress bar that is already in the form. If I do the load and show the progress in the OnInitialUpdate(), I cannot see the progress going! I've tried to do a PostMessage in the OnInitialUpdate, and manage the message afterwards... but no progress in sight! I also tried to do a PostMessage in the OnShowWindow when the bShow is TRUE. Again not yet visible! Does any one knows what message should I catch after the form is visible? I'm using a variable to count if its the first time I have a Paint... but it seems that its not the way to do it... Thanks for your time in advance.
-
Yes it could be. And I also could use a dialog with a progress, which I already have. But, I don't want them! Besides, the problem remains, and I don't want a workarround (wich I already have, via the WM_PAINT). The real problem is: why do I get a WM_SHOWWINDOW message and the form is not visible? What message sould I expect after the form is shown? I don't want a workarround, just to understand the message sequence... ALMC