CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 1999
    Location
    Russia, Novosibirsk
    Posts
    27

    How to make window call OnDraw() of its views?

    I have SDI application and split it for two views. And when i proccess mesg (menu item chosen) i delete view in one part of split window.
    How can i call OnDraw() of all views of that window from itself?
    Thanks.


  2. #2
    Join Date
    May 1999
    Location
    Texas, USA
    Posts
    568

    Re: How to make window call OnDraw() of its views?

    From View,

    GetDocument()->UpdateAllViews(NULL);

    From MainFrame,

    GetActiveDocument()->UpdateAllViews(NULL);

    Wayne


  3. #3
    Join Date
    May 1999
    Posts
    156

    Re: How to make window call OnDraw() of its views?

    Try Invalidate() and see if it does what you want.

    Will


  4. #4
    Join Date
    May 1999
    Posts
    10

    Re: How to make window call OnDraw() of its views?


    m_Splitter.GetPane(row,col)->Invalidate();



    or:

    SendMessage(m_Splitter.GetPane(row.col)->m_hWnd,
    WM_PAINT,0,0);





    the beautiful story made me cry.

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