I need your help! because my colleague and myself have been struggling for quite long time but still can not solve this problem.
my situation is:
I has 3 dialogs In my MFC program,Dialog A, Dialog B with horizontal scrollbar, Dialog C with vertical scrollbar.Dialog A is the main dialog of my program and it has 1 Dialog B as it's child dialog, and dialog B can have max 20 different C dialogs as it's child dialogs. wehn Dialog B is showed up, it's child C dialogs also appear, scrolling the horizontal scrollbar of dialog B, you can see different child C dialog, on the other hand, scrolling the vertical scrollbar, you can see different part of dialog C ( Dialog C doesn't have any controls, only has some painted color rectangles when created initially ).
In Dialog A when user click button "change", the original child dialog B will be closed and another different child dialg B will be showed up ( because different B has different number of C Dialogs).
and my problem is:
I hold one pointer of Dialog B, and use this pointer to create or destroy dialog B, but sometime when the dialog B is showed up, the color rectangles of dialog C don't appear unless user click it's vertical scrollbar.
I hope I described my problem clearly, please kindly give me any hints you think about. I would like to give out all my points. Please give me e-amil address, I can post my testing code (5 classes ) if you think you need to see my problem better.
thank you very much in advance.
-- pigangel with big headache.