JiiPee,
> But was just thinking that if I freeze the desktop its affecting other
> programs? It would freeze other programs so not so good?
It would freeze the /updating/, but gathering those changes untill the
"unfreeze". In your case the in-between time (freezing/unfreezing) seems to
be quite short, and would /most likely/ (not tested) not have any adverse
effect.
> oh, I already tried to freeze with Lock the frame, but did not work
The problem is that LockWindowUpdate only works for a single window.
But now I think of it: There is a function which changes the Z-placement of
a window /without/ activating it. Lemme look ....
Found it: try the SetWindowPos (on your child window) function with HWND_TOP
and the SWP_NOMOVE and SWP_NOSIZE flags. The child should get activated and
it and its parent be pulled to the top.
Regards,
Rudy Wieser
P.s.
I'm suggesting API calls 'cause I've got little knowledge of MFC. Sorry. :-)