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

Thread: Sticky dialog

  1. #1
    Join Date
    Jun 2010
    Posts
    72

    Unhappy Sticky dialog

    I have a dialog with a button, when it is clicked, it will display another dialog that is moved around when the mouse cursor moves. I right-click to pick a "Close" menu item I added in the context menu but this dialog doesn't go away.

    in the windowproc I do this

    case ID_APP_CLOSE:
    {
    this->PostMessageW(WM_CLOSE);
    }

    I change WM_CLOSE into WM_DESTROY, it still there at the mouse cursor, also I am quite sure this line of code has been processed though

    Thanks

  2. #2
    Join Date
    Jun 2010
    Posts
    72

    Re: Sticky dialog

    Been whole day without a reply !

  3. #3
    Join Date
    Jul 2009
    Location
    India
    Posts
    835

    Re: Sticky dialog

    Did you try EndDialog()

  4. #4
    Join Date
    Jun 2010
    Posts
    72

    Re: Sticky dialog

    Not yet, but I will, yes will

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