Re: how to bring app to forderground

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thanks Michael,
Now i want to hide the modal dialog.
The dialog is hided with:
ShowWindows(SW_HIDE)
but the soft menubar is still showing.

I use m_pCommandBar->ShowWindow(FALSE);
but all menu bar is hided( closed ) include menubar of today screen ?!


"Michael Salamone" wrote:

Is the window's owner thread pumping messages?

Is there a modal window open? If so, try SetForegroundWindow((HWND)
(((ULONG) hwnd) | 0x01)).

Also I would use ShowWindow(SW_SHOWNORMAL).

--
Michael Salamone
Entrek Software, Inc.
www.entrek.com


"pinguin" <oneneno@xxxxxxx> wrote in message
news:9324B994-C5A9-4F09-A232-3B07178AB5A6@xxxxxxxxxxxxxxxx
I hide my app dialog with ShowWindows(SW_HIDE).

When i call it back with:

ShowWindow(SW_SHOW);
SetForegroundWindow();
SetFocus();
SetActiveWindow();

*** i can only see my App dialog name on the task bar and the menu bar on
the bottom.

What have i doing wrong ?


.


Quantcast