SetClassLong_ and ContainerGadget

Windows specific forum
eriansa
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Mar 17, 2004 12:31 am
Contact:

SetClassLong_ and ContainerGadget

Post by eriansa »

SetClassLong_(GadgetID(hContainer), #GCL_HBRBACKGROUND, hBrush)

Allthough it looks like it works, is it officially supported?
(In rare cases the background isn't updated when needed)
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8452
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

No API commands are officially supported. If there are rare cases where the background isn't being updated, there's likely something to find in your code. Note that if you're using a SolidBrush, you can accomplish the same goal natively with SetGadgetColor. For PatternBrush, a good native alternative is a disabled image gadget.
BERESHEIT
Post Reply