Make a dyn dialog always on top

Hello,

I create a dynamic window in a hidden dialig. From another dialog I want to show this hidden dynamic dialog. But it is always behind. In DoModal a dialog is allways on top but the parent deactivated. Is there a way to simulate this?

Thanks,

Ocrana
OcranaAsked:
Who is Participating?
 
alb66Commented:
Did you properly set the parent window?
0
 
Deepu AbrahamR & D Engineering ManagerCommented:
Make the hidden dialog a model dialog and call using DoModel().
0
 
romanmCommented:
try to use
BOOL SetWindowPos(  hWnd, // the handle to the window
    HWND_TOP, // places window at the top,
    0,
    0,
    0,
    0,
    SWP_SHOWWINDOW | SWP_NOSIZE | SWP_NOMOVE
);
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.