clipping child windows
-
Hi All. I have a window which has child windows of two types. The child windows can be of non-rectangle shape. I need to exclude from painting the areas occupied by windows of the first type but not the second ones. If I create the window with the WS_CLIPCHILDREN option, I'll get the both types of child windows excluded. What might be the best way to implement this using VC++ and MFC? I've looked towards regions but at the moment it looks a little bit difficult comparing with just specifying one option. Thanks.
-
Hi All. I have a window which has child windows of two types. The child windows can be of non-rectangle shape. I need to exclude from painting the areas occupied by windows of the first type but not the second ones. If I create the window with the WS_CLIPCHILDREN option, I'll get the both types of child windows excluded. What might be the best way to implement this using VC++ and MFC? I've looked towards regions but at the moment it looks a little bit difficult comparing with just specifying one option. Thanks.
- WS_CLIPCHILDREN appies mainly to OnEraseBkgnd(), so override it to return success. 2) Do all your drawing in OnPaint() or OnDraw(). 3) Draw what you need and then exclude there regions or rects. 4) Draw background. Beyond that, your question does not make much since. INTP "The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes." Andrew W. Troelsen