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

Everything else that doesn't fall into one of the other PB categories.
halo
Enthusiast
Enthusiast
Posts: 104
Joined: Mon Jan 26, 2004 2:49 am

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

Post 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?
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

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

Post by PB »

> I need to redraw the window

Code: Select all

InvalidateRect_(hWnd,0,#True) ; Where "hWnd" = WindowID() etc.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Post by Edwin Knoppert »

You could invest time into the BeginDeferWindowPos() API(s) ?
Post Reply