CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Posts
    36

    OnSize not called

    In my Doc_View application I have two view classes. In the extra view class that I created I place some text information. When I try to maximize or resize that window
    it is not refreshed. My plan was for this view to call OnSize which then would take care of the repainting, but OnSize is never called when I click the maximize button
    in the frame of that window. How shall I be able to call OnSize?


  2. #2
    Join Date
    May 1999
    Posts
    69

    Re: OnSize not called

    Assuming the OnSize function is correctly set up to handle the WM_SIZE windows message, the only reason why the WM_SIZE message is not getting to the window is that some other window is taking the message. This is likely to be the frame window, which isn't passing the message on.

    There is a tool that can be used to see windows messages as they are being detected by your application. The tool is Spy++ and is part of the dev studio tools.


  3. #3
    Join Date
    May 1999
    Location
    Sydney, Australia
    Posts
    420

    Re: OnSize not called

    from the frame you might want to resend it to your view

    sally


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