Make client area of dialog transparent, so i can see what is behind the window
-
Hello i was just wondering if this can be done?, i want to be able to see the windows that overlapped by my window. Thanks :laugh:
I'm sure it can be done, don't know if there's any libraries that can already do this for you (may be), but if you want to do it yourself you'll have to override the
OnPaint()
method. -
I'm sure it can be done, don't know if there's any libraries that can already do this for you (may be), but if you want to do it yourself you'll have to override the
OnPaint()
method.thanks but how to do that myself i know that using NULL brush on the WM_PAINT draws the window transparent but just it does that draws a no fill rect, so i can see the back of the window but just the moment it gets drawed, so i am thinking of using a timer but that is not efficient can someone they me how i can do it myself without libraries?
-
thanks but how to do that myself i know that using NULL brush on the WM_PAINT draws the window transparent but just it does that draws a no fill rect, so i can see the back of the window but just the moment it gets drawed, so i am thinking of using a timer but that is not efficient can someone they me how i can do it myself without libraries?
OnPaint()
is the method that the MFC infrastructure calls to draw the screen, that would be the appropriate override for this, if you do it there, it should do it the same every time, if you need to get the screen redrawn at any time, just invalidate it and MFC will once again go toOnPaint()
to redraw. -
Hello i was just wondering if this can be done?, i want to be able to see the windows that overlapped by my window. Thanks :laugh:
Have you looked at the WM_ERASEBKGND and/or WM_CTLCOLORDLG messages?
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Hello i was just wondering if this can be done?, i want to be able to see the windows that overlapped by my window. Thanks :laugh:
M not sure this is your requirement or not add this in onpaint this->ShowWindow(SW_HIDE); this will hide the entire dialog
-
Hello i was just wondering if this can be done?, i want to be able to see the windows that overlapped by my window. Thanks :laugh:
I don't know your skill level, but there are many articles here on codeproject that should help... Have a look in http://www.codeproject.com/KB/dialog/#Skins+%26+Advanced+UI[^] For example: Simple way to create non-rectangular shaped dialogs[^] Perfect Semi-transparent & Shaped Dialogs with Standard, ActiveX, and Translucent Controls for Windows 2000+[^] and Cool, Semi-transparent and Shaped Dialogs with Standard Controls for Windows 2000 and Above[^] These use different approaches. Hopefully one will help you! Iain.
I am one of "those foreigners coming over here and stealing our jobs". Yay me!
-
I don't know your skill level, but there are many articles here on codeproject that should help... Have a look in http://www.codeproject.com/KB/dialog/#Skins+%26+Advanced+UI[^] For example: Simple way to create non-rectangular shaped dialogs[^] Perfect Semi-transparent & Shaped Dialogs with Standard, ActiveX, and Translucent Controls for Windows 2000+[^] and Cool, Semi-transparent and Shaped Dialogs with Standard Controls for Windows 2000 and Above[^] These use different approaches. Hopefully one will help you! Iain.
I am one of "those foreigners coming over here and stealing our jobs". Yay me!
-
Glad to be of assistance! Sometimes it's just knowing what to look for... Iain.
I am one of "those foreigners coming over here and stealing our jobs". Yay me!