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

Thread: OnEndSize

  1. #1
    Guest

    OnEndSize

    I wish to trap a message sent when a window has finished being resized. In MFC, there is the WM_SIZE and WM_SIZING messages, but both are posted while a window is being resized. Does someone know how to trap it only when the sizing operation is finished?

    Thanks


  2. #2
    Join Date
    May 1999
    Posts
    667

    Re: OnEndSize

    Look at
    WM_ENTERSIZEMOVE/WM_EXITSIZEMOVE

    they are not listed in VC5's class wizard (not sure about 6), so you need to add them manually
    ON_MESSAGE(WM_ENTERSIZEMOVE, OnEnterSizeMove)
    ON_MESSAGE(WM_EXITSIZEMOVE, OnExitSizeMove)


    LRESULT YourWnd::OnEnterSizeMove(WPARAM , LPARAM )
    LRESULT YourWnd::OnExitSizeMove(WPARAM , LPARAM )

    HTH,
    Chris


Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center