Erase a window background?

Everything else that doesn't fall into one of the other PB categories.
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Erase a window background?

Post by SFSxOI »

How do you erase a window background? (MSG_WM_ERASEBKGND)
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post by Sparkie »

Not sure what your needs are, but you can try

Code: Select all

RedrawWindow_(hwnd, #Null, #Null, #RDW_ERASE | RDW_INVALIDATE | #RDW_UPDATENOW)
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Post by AND51 »

InvalidateRect_() erases a window or the whole desktop, sending a #WM_PAINT message to an ereased window.

ValidateRect_() sends #WM_ERASEBKGND and #WM_NCPAINT to the window. But I don't know what this function does, because I#ve never used it yet.

For further information, please, have a look at the MSDN.
PB 4.30

Code: Select all

onErrorGoto(?Fred)
Post Reply