Click here to Skip to main content
16,004,653 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Event Log Question Pin
Naveen11-Sep-07 14:27
Naveen11-Sep-07 14:27 
AnswerRe: Event Log Question Pin
Hamid_RT11-Sep-07 2:22
Hamid_RT11-Sep-07 2:22 
GeneralRe: Event Log Question Pin
Programm3r11-Sep-07 2:36
Programm3r11-Sep-07 2:36 
QuestionHow to find out whether my system is 16, 32 or 64 bit ? Pin
Yashusid10-Sep-07 23:22
Yashusid10-Sep-07 23:22 
AnswerRe: How to find out whether my system is 16, 32 or 64 bit ? Pin
Naveen11-Sep-07 1:13
Naveen11-Sep-07 1:13 
AnswerRe: How to find out whether my system is 16, 32 or 64 bit ? Pin
Michael Dunn11-Sep-07 2:19
sitebuilderMichael Dunn11-Sep-07 2:19 
AnswerRe: How to find out whether my system is 16, 32 or 64 bit ? Pin
cmk11-Sep-07 4:16
cmk11-Sep-07 4:16 
QuestionGDI+ Region and SetWindowRgn Pin
Nishad S10-Sep-07 23:12
Nishad S10-Sep-07 23:12 
Hi,

I have a control which is using GDI+ and window region.

The below code is used for setting the window region.
GraphicsPath gp;
// Some gp.AddArc calls...
Region rgn( &gp );
Graphics g( hdc );
HRGN hRgn = rgn.GetHRGN( &g );
SetWindowRgn( hRgn, FALSE );


And in the OnPaint, the following is used for drawing the border.
GraphicsPath gp;
// Some gp.AddArc calls... (same used for setting the region)
LinearGradientBrush brush( ... );
Pen pen( &brush, 1 );
Graphics g( hdc );
g.DrawPath( &pen, &gp );


The issue is that there is a slight difference between the drawn path and the set region. That means the path is not exactly fit in the window region. There are some gaps in many places. So drawing cannot be perfect. I am seeking for a solution to this, as CDC::FrameRgn do. I cant use this FrameRgn, since I need a gradient coloring in the path.

Thanks in advance.

- NS -

QuestionRe: GDI+ Region and SetWindowRgn Pin
bob1697211-Sep-07 2:12
bob1697211-Sep-07 2:12 
AnswerRe: GDI+ Region and SetWindowRgn Pin
Nishad S11-Sep-07 2:16
Nishad S11-Sep-07 2:16 
Questiontrouble in using MAPIToMIMEStm help Pin
monsieur_jj10-Sep-07 23:06
monsieur_jj10-Sep-07 23:06 
AnswerRe: trouble in using MAPIToMIMEStm help Pin
Cedric Moonen10-Sep-07 23:18
Cedric Moonen10-Sep-07 23:18 
QuestionHow to detect Internet connection on machine? Pin
Sameerkumar Namdeo10-Sep-07 22:52
Sameerkumar Namdeo10-Sep-07 22:52 
AnswerRe: How to detect Internet connection on machine? Pin
baerten10-Sep-07 23:26
baerten10-Sep-07 23:26 
GeneralRe: How to detect Internet connection on machine? Pin
David Crow11-Sep-07 3:12
David Crow11-Sep-07 3:12 
GeneralRe: How to detect Internet connection on machine? Pin
baerten11-Sep-07 3:38
baerten11-Sep-07 3:38 
GeneralRe: How to detect Internet connection on machine? Pin
bob1697211-Sep-07 17:06
bob1697211-Sep-07 17:06 
GeneralRe: How to detect Internet connection on machine? Pin
jhwurmbach11-Sep-07 4:07
jhwurmbach11-Sep-07 4:07 
GeneralRe: How to detect Internet connection on machine? Pin
David Crow11-Sep-07 4:25
David Crow11-Sep-07 4:25 
AnswerRe: How to detect Internet connection on machine? Pin
bob1697211-Sep-07 2:05
bob1697211-Sep-07 2:05 
AnswerRe: How to detect Internet connection on machine? Pin
bob1697211-Sep-07 2:08
bob1697211-Sep-07 2:08 
AnswerRe: How to detect Internet connection on machine? Pin
David Crow11-Sep-07 3:13
David Crow11-Sep-07 3:13 
Questionmap file with 0 size Pin
Vinod CS10-Sep-07 22:46
Vinod CS10-Sep-07 22:46 
AnswerRe: map file with 0 size Pin
Naveen10-Sep-07 23:13
Naveen10-Sep-07 23:13 
GeneralRe: map file with 0 size Pin
Vinod CS11-Sep-07 17:42
Vinod CS11-Sep-07 17:42 

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.