Click here to Skip to main content
15,916,398 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralPROCENUMPROC Pin
25-Jun-01 5:07
suss25-Jun-01 5:07 
GeneralScrolling text window from stream. Pin
Malcolm McMahon25-Jun-01 4:54
Malcolm McMahon25-Jun-01 4:54 
GeneralNative Api ZwQuerySemaphore Pin
25-Jun-01 3:39
suss25-Jun-01 3:39 
GeneralNative Api ZwQuerySemaphore Pin
25-Jun-01 3:39
suss25-Jun-01 3:39 
GeneralRe: Native Api ZwQuerySemaphore Pin
Stephen Kellett26-Jun-01 2:33
Stephen Kellett26-Jun-01 2:33 
GeneralGDI+ Problems Pin
Andy Brace25-Jun-01 3:35
Andy Brace25-Jun-01 3:35 
GeneralRe: GDI+ Problems Pin
Christian Graus25-Jun-01 10:54
protectorChristian Graus25-Jun-01 10:54 
GeneralRe: GDI+ Problems Pin
Andy Brace27-Jun-01 11:28
Andy Brace27-Jun-01 11:28 
Thanks for the response.
I ended up masking off the regions I didn't want tiled with gradients. I have to do this anyway as I need to draw the start and end colors in these areas. As far as the blending, that was to be my fallback position if I can't get the SetBlend to work for me.
I've found another problem though and it has to do with the regions. I'm trying to implement GDIPlus as much as possible and I have cases where I need to switch back and forth between the GDIPlus Region and CRgn. What I've found is that when switch from the Region to CRgn I am using the Region.FromHandle(&graphic) call. The problem comes about because the CDC that I use to create the graphic has an origin not at 0,0. This causes the CRgn to be created offset by the origin (i.e. you create a Region from a rectangular path whose origin is 0,0, but the DC you are drawing into is offset to 150, 150, when you try to create a Region from the path and then try to create a CRgn from the Region, you end up with a CRgn whose bounds start at 150, 150).
Andy
GeneralRe: GDI+ Problems Pin
Christian Graus27-Jun-01 12:07
protectorChristian Graus27-Jun-01 12:07 
GeneralRe: GDI+ Problems Pin
Andy Brace28-Jun-01 3:24
Andy Brace28-Jun-01 3:24 
GeneralRe: GDI+ Problems Pin
28-Jun-01 3:46
suss28-Jun-01 3:46 
GeneralRe: GDI+ Problems Pin
28-Jun-01 3:50
suss28-Jun-01 3:50 
GeneralLogin Window Pin
25-Jun-01 3:06
suss25-Jun-01 3:06 
GeneralRe: Login Window Pin
l a u r e n25-Jun-01 7:33
l a u r e n25-Jun-01 7:33 
Question.EXE or .DLL ? Pin
25-Jun-01 3:05
suss25-Jun-01 3:05 
AnswerRe: .EXE or .DLL ? Pin
Michael P Butler25-Jun-01 4:36
Michael P Butler25-Jun-01 4:36 
AnswerRe: .EXE or .DLL ? Pin
l a u r e n25-Jun-01 7:35
l a u r e n25-Jun-01 7:35 
GeneralRe: .EXE or .DLL ? Pin
Gérald Mercet25-Jun-01 23:15
Gérald Mercet25-Jun-01 23:15 
GeneralRe: .EXE or .DLL ? Pin
l a u r e n26-Jun-01 2:33
l a u r e n26-Jun-01 2:33 
GeneralProcess viewer... Pin
25-Jun-01 2:54
suss25-Jun-01 2:54 
QuestionAbout the icons on the desktop? Pin
hjhwolffie25-Jun-01 1:59
hjhwolffie25-Jun-01 1:59 
AnswerRe: About the icons on the desktop? Pin
Christian Graus25-Jun-01 10:55
protectorChristian Graus25-Jun-01 10:55 
GeneralBackground and text colors of the date/time picker Pin
Serge Weinstock25-Jun-01 0:07
Serge Weinstock25-Jun-01 0:07 
GeneralDisable pages on a CPropertysheet Pin
24-Jun-01 23:48
suss24-Jun-01 23:48 
GeneralRe: Disable pages on a CPropertysheet Pin
Tomasz Sowinski25-Jun-01 1:53
Tomasz Sowinski25-Jun-01 1:53 

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.