From: Larry on
Hi,

I'd like my app to show a small dialog when the main windows is
minimized. Now, I think that's not a big deal to cacth the message when the
main window gets minimized. Also, this is how the small dialog should look
like:

IDD_MINIMIZE DIALOG 0, 0, 400, 10
STYLE DS_FIXEDSYS | WS_VISIBLE | WS_BORDER | WS_POPUP
FONT 8, "Ms Shell Dlg 2"
BEGIN
LTEXT "Static", IDC_STATIC, 191, 1, 19, 8, SS_LEFT
END

Yet, the small window cannot be dragged! Do you think it is possible to add
a little something to the very left of the dialog to allow user to drag it?

thanks

From: Alex Blekhman on
"Larry" wrote:
> Yet, the small window cannot be dragged! Do you think it is
> possible to add a little something to the very left of the
> dialog to allow user to drag it?

If you want a window to respond to mouse drags, then you have two
options:

1. Add WS_CAPTION style to the window, so user will be able to
drag it by holding the caption.

2. Handle WM_NCHITTEST notification in your window procedure and
return HTCAPTION value when desired area of the window is clicked.
You may return HTCAPTION all the time if you want to make the
whole window behave like a caption.

HTH
Alex