Page 1 of 1

Beat the flicker with SendMessage_(hwnd,#WM_SETREDRAW,0,0)?

Posted: Sat Sep 10, 2005 2:41 am
by halo
I am trying this in my resizing callback code:
SendMessage_(hwnd,#WM_SETREDRAW,0,0)
;Resize stuff here
SendMessage_(hwnd,#WM_SETREDRAW,1,0)

Now I need to redraw the window. How do I do this?

Re: Beat the flicker with SendMessage_(hwnd,#WM_SETREDRAW,0,

Posted: Sat Sep 10, 2005 2:43 am
by PB
> I need to redraw the window

Code: Select all

InvalidateRect_(hWnd,0,#True) ; Where "hWnd" = WindowID() etc.

Posted: Sat Sep 10, 2005 7:16 am
by Edwin Knoppert
You could invest time into the BeginDeferWindowPos() API(s) ?