Focused Based Transparency Question
-
I am writing a desktop-based toolbar app ( similar in design to the IE Channel Bar ) written from a App-Wizard Generated C++/MFC Dialog Project that is designed to fade down to 25% opacity when it's not being used. It's intended to do this after processing the WM_KILLFOCUS message via the OnKillFocus() Dialog Member. Additionally, it should fade it's opacity back up to 100% when it recieves the WM_SETFOCUS message via the OnSetFocus() Dialog Member. My problem is that I'm unable to get any sort of transparency to work in this situation, including the articles I've seen here at CP or the MSDN :-(. I've thought about using AnimateWindow() but to my knowledge that only fades the window out completely or in completely, and on top of that I don't know how to implement it. :-( If some one could provide me with a code sample that demonstrates how I could apply transparancy in this situation I would be greatly appreciative. Thanks in advance.
It's good to see kids turning their minds to wholesum activities such as programming, instead of wasting their lives in the hedonistic disciplines of Sex, Drugs, & Rock & Roll... or Sex with Drugs, or Sex with Rocks while Rolling in Drugs, or whatever new-fangled perversions you little monsters have thought up now... [Shog9 on Kid Programmers]
-
I am writing a desktop-based toolbar app ( similar in design to the IE Channel Bar ) written from a App-Wizard Generated C++/MFC Dialog Project that is designed to fade down to 25% opacity when it's not being used. It's intended to do this after processing the WM_KILLFOCUS message via the OnKillFocus() Dialog Member. Additionally, it should fade it's opacity back up to 100% when it recieves the WM_SETFOCUS message via the OnSetFocus() Dialog Member. My problem is that I'm unable to get any sort of transparency to work in this situation, including the articles I've seen here at CP or the MSDN :-(. I've thought about using AnimateWindow() but to my knowledge that only fades the window out completely or in completely, and on top of that I don't know how to implement it. :-( If some one could provide me with a code sample that demonstrates how I could apply transparancy in this situation I would be greatly appreciative. Thanks in advance.
It's good to see kids turning their minds to wholesum activities such as programming, instead of wasting their lives in the hedonistic disciplines of Sex, Drugs, & Rock & Roll... or Sex with Drugs, or Sex with Rocks while Rolling in Drugs, or whatever new-fangled perversions you little monsters have thought up now... [Shog9 on Kid Programmers]
If you haven't already seen it, this[^] article may help. /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com