Draw on view and over their controls [modified]
-
Hi everybody, i like to draw a loading rect on a view and overlay a "shadow" on the entire view. I made the shadow this way :
for(int x=0; x<rect.width();{
for(int y=0; y<rect.height();{
pDC->SetPixel(x,y,RGB(0,0,0));
}
}But the shadow isn't drawn over the controls. Rather the controls are drawn over the shadow :) Is there a possibility to do that? Big thanks for help :rose:
modified on Friday, November 7, 2008 4:37 AM
-
Hi everybody, i like to draw a loading rect on a view and overlay a "shadow" on the entire view. I made the shadow this way :
for(int x=0; x<rect.width();{
for(int y=0; y<rect.height();{
pDC->SetPixel(x,y,RGB(0,0,0));
}
}But the shadow isn't drawn over the controls. Rather the controls are drawn over the shadow :) Is there a possibility to do that? Big thanks for help :rose:
modified on Friday, November 7, 2008 4:37 AM
Well... :) What about creating a popup dialog without caption and borders and drawing whatever you want...? Hint: Have a try to WS_EX_TRANSPARENT style too...
- NS - [ODBaseBtn]
-
Well... :) What about creating a popup dialog without caption and borders and drawing whatever you want...? Hint: Have a try to WS_EX_TRANSPARENT style too...
- NS - [ODBaseBtn]
Yepp, thats the easiest solution But in my MDI Application it's possible to continue the work in other views. These other views, which aren't loading huge data, are still editable. WS_EX_TRANSPARENT Ok, i'll google after this Thanks :) If you have further ideas how to resolve this problem, i would be very happy ;)
-
Yepp, thats the easiest solution But in my MDI Application it's possible to continue the work in other views. These other views, which aren't loading huge data, are still editable. WS_EX_TRANSPARENT Ok, i'll google after this Thanks :) If you have further ideas how to resolve this problem, i would be very happy ;)
baerten wrote:
But in my MDI Application it's possible to continue the work in other views. These other views, which aren't loading huge data, are still editable.
Ofcourse, you can continue the work, if you create the dialog as modeless... :)
- NS - [ODBaseBtn]
-
baerten wrote:
But in my MDI Application it's possible to continue the work in other views. These other views, which aren't loading huge data, are still editable.
Ofcourse, you can continue the work, if you create the dialog as modeless... :)
- NS - [ODBaseBtn]