G
Guest
I have a class derived from UserControl. The control displays a layout that
I want to use on several different controls/forms. The containing
control/form would then paint over the layout with additional information.
The problem is that when I draw a line in the control containing the layout
control (in my case, another UserControl derived class), the line is behind
the layout control. I have tried turning off the WS_CLIPCHILDREN style in
the CreateParams, but that doesn't seem to make a difference.
I want to avoid drawing all possibilities in the layout control, but cannot
find the right code to do it.
Is there a way to do this or is my architecture incorrect?
I want to use on several different controls/forms. The containing
control/form would then paint over the layout with additional information.
The problem is that when I draw a line in the control containing the layout
control (in my case, another UserControl derived class), the line is behind
the layout control. I have tried turning off the WS_CLIPCHILDREN style in
the CreateParams, but that doesn't seem to make a difference.
I want to avoid drawing all possibilities in the layout control, but cannot
find the right code to do it.
Is there a way to do this or is my architecture incorrect?