views:

27

answers:

0

how to arrange dialogs programmatically in MFC in cascade format, other than simply using SetWindowPos based upon the position of the previous displayed window.

The Dialog position is to be loaded from the registry(in my app) so we use SetWindowPos(NULL,x,y,cx,cy,SWP_NOZORDER); for the dialog , Ater then if we use CascadeWindows function but it doesnot seem to work for this Dialog, but it works for other dialogs in the parent Wnd.Seems CasacdeWindows function has no effect on windows that has called SetWindowPos(), Can anybody please confirm?

If so now we have to use only SetWindowPos only to arrange the dialogs casacde or any other way out is there?