Transparent Background of User Control
-
AoA I am doing a GDI+ project. In which i created a user control with transparent background. That is fine. But when i add this control two times in a from, it works strange. When a Control overlays other, the background of the control came as the background of the main form not the user control. Please help me to solve this problem. The link of the file is given below. Click to Download[^] Waiting for any kind of help. Regards, Nazar Hussain
-
AoA I am doing a GDI+ project. In which i created a user control with transparent background. That is fine. But when i add this control two times in a from, it works strange. When a Control overlays other, the background of the control came as the background of the main form not the user control. Please help me to solve this problem. The link of the file is given below. Click to Download[^] Waiting for any kind of help. Regards, Nazar Hussain
Do you have the WS_CLIPSIBLINGS style set for your control window? It might be clipping its sibling and that's why you see the main window as the background. Something to look at anyhow. BTW, it's very unlikely anyone is going to click on a link to an executable.
If you don't have the data, you're just another asshole with an opinion.
-
Do you have the WS_CLIPSIBLINGS style set for your control window? It might be clipping its sibling and that's why you see the main window as the background. Something to look at anyhow. BTW, it's very unlikely anyone is going to click on a link to an executable.
If you don't have the data, you're just another asshole with an opinion.
Thanks sir, You guide me to the exact thing. Please guide me further, when i use WS_CLIPSIBLINGS in CreateParams overloaded function of the UserControl and run the application. It gave an Win32Exception "The parameter is incorrect". Please guide me to how to implement WS_CLIPSIBLINGS And sorry for last time exe file. I will always upload source project next when needed.
-
Thanks sir, You guide me to the exact thing. Please guide me further, when i use WS_CLIPSIBLINGS in CreateParams overloaded function of the UserControl and run the application. It gave an Win32Exception "The parameter is incorrect". Please guide me to how to implement WS_CLIPSIBLINGS And sorry for last time exe file. I will always upload source project next when needed.
NazarHussain wrote:
Please guide me to how to implement WS_CLIPSIBLINGS
I OR it with the other window styles when I call the Create method on the window. But I'm using C++ and WTL for a framework lately. You haven't said but I get the impression you might be using C#. If so, I know next to nothing about C#.
If you don't have the data, you're just another asshole with an opinion.