Results 1 to 5 of 5

Thread: How to Repaint client area of a MDI form ? [Resolved]

Hybrid View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

    Re: How to Repaint client area of a MDI form ?

    Thanks, it is quite simple...
    This is all I needed (from the MdiBack class):
    VB Code:
    1. Const swpFlags As Long = _
    2.       SWP_FRAMECHANGED Or SWP_NOMOVE Or _
    3.       SWP_NOZORDER Or SWP_NOSIZE
    4.  
    5. Call SetWindowPos(Me.hWnd, 0, 0, 0, 0, 0, swpFlags)

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: How to Repaint client area of a MDI form ? [Resolved]

    I'd try these as another couple of methods:
    Code:
    Public Const RDW_UPDATENOW                  As Long = &H100
    
    Public Declare Function RedrawWindow Lib "user32" _
        (ByVal hWnd As Long, _
         ByRef lprcUpdate As Any, _
         ByVal hrgnUpdate As Long, _
         ByVal fuRedraw As Long) _
    As Long
    
    Public Declare Function UpdateWindow Lib "user32" _
        (ByVal hWnd As Long) _
    As Boolean
    Call them like this
    VB Code:
    1. RedrawWindow Me.hWnd, ByVal 0&, 0, RDW_UPDATENOW
    2. ' or
    3. UpdateWindow Me.hWnd
    Both should have the same effect.

  3. #3

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