Click here to Skip to main content
15,918,624 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIs there any way to statically link with kernel32/ntdll? Pin
sunriseway5-Dec-06 10:08
sunriseway5-Dec-06 10:08 
AnswerRe: Is there any way to statically link with kernel32/ntdll? Pin
Zac Howland5-Dec-06 10:16
Zac Howland5-Dec-06 10:16 
Questionsprintf vs strcpy Pin
Blake Miller5-Dec-06 9:02
Blake Miller5-Dec-06 9:02 
AnswerRe: sprintf vs strcpy Pin
David Crow5-Dec-06 9:09
David Crow5-Dec-06 9:09 
AnswerRe: sprintf vs strcpy Pin
Zac Howland5-Dec-06 9:30
Zac Howland5-Dec-06 9:30 
AnswerRe: sprintf vs strcpy Pin
led mike5-Dec-06 9:43
led mike5-Dec-06 9:43 
GeneralRe: sprintf vs strcpy Pin
Zac Howland5-Dec-06 10:00
Zac Howland5-Dec-06 10:00 
GeneralRe: sprintf vs strcpy Pin
led mike5-Dec-06 10:31
led mike5-Dec-06 10:31 
AnswerRe: sprintf vs strcpy Pin
Stephen Hewitt5-Dec-06 12:08
Stephen Hewitt5-Dec-06 12:08 
Questionsimple code question Pin
CaptainChainsaw5-Dec-06 6:51
CaptainChainsaw5-Dec-06 6:51 
AnswerRe: simple code question Pin
Nemanja Trifunovic5-Dec-06 6:58
Nemanja Trifunovic5-Dec-06 6:58 
AnswerRe: simple code question Pin
David Crow5-Dec-06 7:18
David Crow5-Dec-06 7:18 
AnswerRe: simple code question Pin
zoid ! 5-Dec-06 7:28
zoid ! 5-Dec-06 7:28 
AnswerRe: simple code question Pin
includeh105-Dec-06 8:06
includeh105-Dec-06 8:06 
AnswerRe: simple code question Pin
CaptainChainsaw5-Dec-06 9:16
CaptainChainsaw5-Dec-06 9:16 
AnswerRe: simple code question Pin
Zac Howland5-Dec-06 9:34
Zac Howland5-Dec-06 9:34 
QuestionCTooltipCtrl Pin
Demian Panello5-Dec-06 6:28
Demian Panello5-Dec-06 6:28 
AnswerRe: CTooltipCtrl Pin
Wes Aday5-Dec-06 10:06
professionalWes Aday5-Dec-06 10:06 
QuestionHow to use MSFLexGrid in VC 2005 Pin
masnu5-Dec-06 5:42
masnu5-Dec-06 5:42 
AnswerRe: How to use MSFLexGrid in VC 2005 Pin
prasad_som6-Dec-06 18:49
prasad_som6-Dec-06 18:49 
QuestionBorder for rounded rectangle Pin
Super Hornet5-Dec-06 5:38
Super Hornet5-Dec-06 5:38 
AnswerRe: Border for rounded rectangle Pin
Waldermort5-Dec-06 6:24
Waldermort5-Dec-06 6:24 
QuestionRe: Border for rounded rectangle [modified] Pin
Super Hornet5-Dec-06 7:04
Super Hornet5-Dec-06 7:04 
Is there any better way. As i have more than 100 dialogs and for each dialog drawing two rect's and filling region may not be better solution.

if the dialog is rectangle i m doing as,
CRect rectWindow;
//CDC *pDC;
CPen BlackPen(PS_SOLID, 1, RGB(0, 0, 255)), *pPrevPen;
pDC = GetWindowDC();
GetWindowRect(rectWindow);
INT iLeft = 0,
iTop = 0,
iRight = rectWindow.Width() - 1,
iBottom = rectWindow.Height() - 1;
pPrevPen = pDC->SelectObject(&BlackPen);
pDC->MoveTo(iLeft, iTop);
pDC->LineTo(iLeft, iBottom);
pDC->LineTo(iRight, iBottom);
pDC->LineTo(iRight, iTop);
pDC->LineTo(iLeft, iTop);
pDC->SelectObject(pPrevPen);
ReleaseDC(pDC);

in OnCtlColor and it works well but for rounded rectangle...Confused | :confused:


-- modified at 13:35 Tuesday 5th December, 2006
GeneralRe: Border for rounded rectangle Pin
Mark Salsbery5-Dec-06 7:35
Mark Salsbery5-Dec-06 7:35 
QuestionRe: Border for rounded rectangle Pin
Super Hornet5-Dec-06 7:55
Super Hornet5-Dec-06 7:55 

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.