CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: minimize window

  1. #1
    Join Date
    Dec 2009
    Posts
    161

    minimize window

    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:

    Code:
    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

  2. #2
    Join Date
    Feb 2005
    Posts
    2,160

    Re: minimize window

    If you don't provide a title bar, then you will have to handle hit tests (non-client hit tests if outside the client area) to determine when the mouse is withing your "drag" zone and do all the moving yourself.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured