Click here to Skip to main content
15,907,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question regarding Kernal level drivers Pin
Bram van Kampen28-Dec-09 13:01
Bram van Kampen28-Dec-09 13:01 
GeneralRe: Question regarding Kernal level drivers Pin
Mattzimmerer28-Dec-09 15:18
Mattzimmerer28-Dec-09 15:18 
GeneralRe: Question regarding Kernal level drivers Pin
Bram van Kampen29-Dec-09 9:23
Bram van Kampen29-Dec-09 9:23 
QuestionC++ USB Help please ; ) Pin
Ubid00725-Dec-09 11:34
Ubid00725-Dec-09 11:34 
AnswerRe: C++ USB Help please ; ) Pin
Tim Craig25-Dec-09 14:07
Tim Craig25-Dec-09 14:07 
AnswerRe: C++ USB Help please ; ) Pin
JudyL_MD27-Dec-09 5:04
JudyL_MD27-Dec-09 5:04 
AnswerRe: C++ USB Help please ; ) Pin
David Crow27-Dec-09 15:44
David Crow27-Dec-09 15:44 
QuestionPager control on a glass window Pin
Ivo Beltchev25-Dec-09 7:38
Ivo Beltchev25-Dec-09 7:38 
Hi, I have a window that uses glass. I use DwmEnableBlurBehindWindow to enable the glass effect. (DwmExtendFrameIntoClientArea is not enough for me because it doesn't work for simple window with no frame). I use a 32-bit bitmap for the background and I control the opacity of the window through the alpha channel.

I have a pager control in my window and a toolbar control inside the pager. I don't want the pager or the toolbar to have any transparency. The rectangular area of the background bitmap behind them is fully opaque.

The problem is that any non-white pixel drawn by the pager or the toolbar become transparent (punch a whole in my opaque background). Black pixels become fully transparent, and 50% gray become 50% transparent. I guess the reason is that GDI sets the alpha channel based on the brightness of the color.

After some research I was able to fix the toolbar by drawing it in a buffered bitmap, then setting the bitmap alpha to 255 with BufferedPaintSetAlpha. The pager however is not so simple. It draws its buttons on its non-client area, and does so not only on WM_NCPAINT but on mouse messages and at other inconvenient times. There is no owner-draw or custom-draw system for pager controls.

So. Ideally I want to make a rectangular portion of my top window 100% opaque no matter what is drawn on it later. Next best thing would be a way to override the drawing of the pager control.

Any ideas?

Thanks
Ivo
QuestionTmp folder Path Pin
john563225-Dec-09 4:13
john563225-Dec-09 4:13 
AnswerRe: Tmp folder Path Pin
Luc Pattyn25-Dec-09 4:21
sitebuilderLuc Pattyn25-Dec-09 4:21 
QuestionA good beginner's tutorial Pin
abidaal25-Dec-09 4:00
abidaal25-Dec-09 4:00 
AnswerRe: A good beginner's tutorial Pin
Nelek25-Dec-09 6:55
protectorNelek25-Dec-09 6:55 
GeneralRe: A good beginner's tutorial Pin
abidaal27-Dec-09 23:35
abidaal27-Dec-09 23:35 
GeneralRe: A good beginner's tutorial Pin
Nelek28-Dec-09 6:24
protectorNelek28-Dec-09 6:24 
AnswerRe: A good beginner's tutorial Pin
Rajesh R Subramanian25-Dec-09 7:01
professionalRajesh R Subramanian25-Dec-09 7:01 
GeneralRe: A good beginner's tutorial Pin
abidaal27-Dec-09 23:33
abidaal27-Dec-09 23:33 
AnswerRe: A good beginner's tutorial Pin
Rajesh R Subramanian28-Dec-09 0:07
professionalRajesh R Subramanian28-Dec-09 0:07 
GeneralRe: A good beginner's tutorial Pin
abidaal28-Dec-09 0:09
abidaal28-Dec-09 0:09 
QuestionRe: A good beginner's tutorial Pin
David Crow27-Dec-09 15:46
David Crow27-Dec-09 15:46 
AnswerRe: A good beginner's tutorial Pin
abidaal27-Dec-09 23:36
abidaal27-Dec-09 23:36 
QuestionUndefined Value Pin
Anu_Bala24-Dec-09 21:52
Anu_Bala24-Dec-09 21:52 
AnswerRe: Undefined Value [modified] Pin
Nelek25-Dec-09 0:50
protectorNelek25-Dec-09 0:50 
GeneralRe: Undefined Value Pin
Anu_Bala25-Dec-09 20:01
Anu_Bala25-Dec-09 20:01 
GeneralRe: Undefined Value Pin
Nelek25-Dec-09 22:50
protectorNelek25-Dec-09 22:50 
AnswerRe: Undefined Value Pin
«_Superman_»25-Dec-09 2:30
professional«_Superman_»25-Dec-09 2:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.