Best regards,
Rhett Gong [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties and confers no rights.
"Javier Martínez" <ja...@tid.es> wrote in message
news:uvbgsPhm...@TK2MSFTNGP10.phx.gbl...
> Hi
>
> I have a small window (see the capture) that always may be visible,
because
> if the user click the windows, this window expand a big size. If the user
> click the icon Show Desktop my small window disappear. I don't want this
> behaviour.
>
>
>
> To put the style WS_EX_TOPMOST is not adequate because I want that other
> windows overlapped over my small window.
>
>
>
> I try a hook CBT to catch HCBT_MINMAX and return true, but doesn't work
> because the window is not visible after the user push ShowDesktop.
>
> Can you help me?
>
>
>
> Javier
>
>
>
> "Rhett Gong" <v-ra...@online.microsoft.com> escribió en el mensaje
> news:bcLPKwgm...@cpmsftngxa06.phx.gbl...
Javier already said that WS_EX_TOPMOST was no good. I agree with Raymond though, the desired behaviour would probably be, er, undesirable. However, creating the window as a child of the desktop folder window might do the trick. The window hierarchy can be determinied with Spy++, but obviously this is an implementation detail of Explorer and should not be relied upon!
--
Jim Barry, MVP for Windows SDK
"For bureaucratic reasons, we settled on one issue, weapons of mass
destruction, because it was the one reason everyone could agree on."
Paul Wolfowitz, US Deputy Defence Secretary
"Rhett Gong" <v-ra...@online.microsoft.com> escribió en el mensaje
news:EPvqfac...@cpmsftngxa06.phx.gbl...
Does this answer your question?
If it does, please let me know! I will feel happier for that.
If not, write your problems with detailed information. I always do my best
to solve your problems;-)
My problems are:
The user click the icon ShowDesktop and the application is minimized or
similar, and I can`t find out the way to prevent this behavior.
"Rhett Gong" <v-ra...@online.microsoft.com> escribió en el mensaje
news:psvyJhgn...@cpmsftngxa06.phx.gbl...
How do you mean? It seemed to work well enough when I tried it.
- Jim
VERIFY(m_pWnd->CreateEx( WS_EX_TOOLWINDOW,
AfxRegisterWndClass(CS_DBLCLKS,::LoadCursor(NULL,
IDC_ARROW),(HBRUSH) ::GetStockObject(WHITE_BRUSH),NULL),
_T("TMTab"),
WS_CHILD|WS_VISIBLE|WS_CLIPCHILDREN,
CRect(0,0,100,100),
CWnd::GetDesktopWindow(),
NULL));
And when the user clicks the icon "Show Desktop" the window is minimized
"Jim Barry" <j...@mvps.org> escribió en el mensaje
news:e23KW3in...@TK2MSFTNGP11.phx.gbl...
I meant to make it a child of the desktop's folder view, not the desktop window itself. Check it with Spy++, it should be like this:
"" #32769 (Desktop)
"Program Manager" Progman
"" SHELLDLL_DefView
"FolderView" SysListView32
- Jim
"Jim Barry" <j...@mvps.org> escribió en el mensaje
news:eup9CJjn...@TK2MSFTNGP10.phx.gbl...
"Javier Martínez" <ja...@tid.es> wrote in message
news:%23DF%23d%23hnDH...@tk2msftngp13.phx.gbl...
"Javier Martínez" <ja...@tid.es> wrote in message
news:%23C5faIm...@TK2MSFTNGP11.phx.gbl...