Click here to Skip to main content
15,896,372 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: Border for rounded rectangle Pin
Mark Salsbery5-Dec-06 11:43
Mark Salsbery5-Dec-06 11:43 
QuestionLaHaHa - Joystick Questions Pin
Mark Salsbery5-Dec-06 5:36
Mark Salsbery5-Dec-06 5:36 
AnswerRe: LaHaHa - Joystick Questions Pin
led mike5-Dec-06 6:12
led mike5-Dec-06 6:12 
GeneralRe: LaHaHa - Joystick Questions Pin
Mark Salsbery5-Dec-06 6:26
Mark Salsbery5-Dec-06 6:26 
GeneralRe: LaHaHa - Joystick Questions Pin
LaHaHa5-Dec-06 19:08
LaHaHa5-Dec-06 19:08 
GeneralRe: LaHaHa - Joystick Questions Pin
Mark Salsbery5-Dec-06 20:38
Mark Salsbery5-Dec-06 20:38 
GeneralRe: LaHaHa - Joystick Questions Pin
LaHaHa5-Dec-06 22:10
LaHaHa5-Dec-06 22:10 
GeneralRe: LaHaHa - Joystick Questions Pin
Mark Salsbery6-Dec-06 5:42
Mark Salsbery6-Dec-06 5:42 
GeneralRe: LaHaHa - Joystick Questions Pin
LaHaHa6-Dec-06 13:24
LaHaHa6-Dec-06 13:24 
QuestionVC++ 6.0 SP6 Linker Hangs Pin
KFournier5-Dec-06 5:33
KFournier5-Dec-06 5:33 
AnswerRe: VC++ 6.0 SP6 Linker Hangs Pin
KFournier5-Dec-06 11:07
KFournier5-Dec-06 11:07 
QuestionHow to export a class in a dynamic dll Pin
vc++_fragrance5-Dec-06 5:30
vc++_fragrance5-Dec-06 5:30 
AnswerRe: How to export a class in a dynamic dll Pin
Cedric Moonen5-Dec-06 5:40
Cedric Moonen5-Dec-06 5:40 
AnswerRe: How to export a class in a dynamic dll Pin
Mark Salsbery5-Dec-06 5:51
Mark Salsbery5-Dec-06 5:51 
AnswerRe: How to export a class in a dynamic dll Pin
includeh105-Dec-06 8:02
includeh105-Dec-06 8:02 

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.