tags:

views:

11

answers:

0

I have a TPanel with WS_EX_COMPOSITED window style and a lot of controls with WS_EX_TRANSAPARENT style. Some of those controls uses GDI and some GDI+. It seems ok for those controls using GDI but I can't see the controls drawn by GDI+. I also noticed that setting WS_EX_COMPOSITED seems to sends an infinite WM_Paint that is why the GDI+ controls are not seen. It being redrawn again and again at a very fast rate. When clicking on the edge of the window to resize it, the GDI+ controls appears, probably because it now doesn't loop the WM_Paint. How can I prevent the infinite WM_Paint?