Click here to Skip to main content
15,891,253 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Device Context Pin
Blake Miller7-Mar-05 10:39
Blake Miller7-Mar-05 10:39 
GeneralRe: Device Context Pin
Pazzuzu7-Mar-05 19:49
Pazzuzu7-Mar-05 19:49 
GeneralRe: Device Context Pin
Blake Miller8-Mar-05 4:26
Blake Miller8-Mar-05 4:26 
GeneralRe: Device Context Pin
Pazzuzu8-Mar-05 4:53
Pazzuzu8-Mar-05 4:53 
GeneralRe: Device Context Pin
Blake Miller8-Mar-05 6:20
Blake Miller8-Mar-05 6:20 
GeneralRe: Device Context Pin
Pazzuzu8-Mar-05 20:28
Pazzuzu8-Mar-05 20:28 
GeneralRe: Device Context Pin
Blake Miller9-Mar-05 4:29
Blake Miller9-Mar-05 4:29 
GeneralRe: Device Context Pin
Pazzuzu9-Mar-05 5:01
Pazzuzu9-Mar-05 5:01 
Hi Blake,


Appreciate your reply.But should admit that althought I understood what u have written,have no idea how to achieve that.

Just to make my side clear,
I don't want to fill the rectangle with a partiular colour,would just want to draw the 4 lines with bumped effect.

In the following sample code,Iam trying to draw a rectangle with redcolour.
Would appreciate it if you could show it this code segment how I could achieve the bumped effect as well.

void CEx03aView::OnDraw(CDC* pDC)
{
CPen newPen(PS_SOLID,2,RGB(255,0,0));
CPen *pOldPen = pDC->SelectObject(&newPen);
//Top Line
pDC->MoveTo(10,100);
pDC->LineTo(150,100);
//Right Line
pDC->MoveTo(150,100);
pDC->LineTo(150,250);
//Bottom Line
pDC->MoveTo(150,250);
pDC->LineTo(10,250);
//Left Line
pDC->MoveTo(10,250);
pDC->LineTo(10,100);

}

Thanks..
GeneralScroll bar with ActiveX control Pin
Anand for every one7-Mar-05 4:48
Anand for every one7-Mar-05 4:48 
GeneralButton location Pin
Anand for every one7-Mar-05 4:38
Anand for every one7-Mar-05 4:38 
GeneralRe: Button location Pin
Maximilien7-Mar-05 6:15
Maximilien7-Mar-05 6:15 
GeneralDEstroyWindow and Focus question ( weird behaviour) Pin
Maximilien7-Mar-05 4:22
Maximilien7-Mar-05 4:22 
GeneralRe: DEstroyWindow and Focus question ( weird behaviour) Pin
Ryan Binns7-Mar-05 17:48
Ryan Binns7-Mar-05 17:48 
GeneralRe: DEstroyWindow and Focus question ( weird behaviour) Pin
Maximilien8-Mar-05 4:00
Maximilien8-Mar-05 4:00 
GeneralRe: DEstroyWindow and Focus question ( weird behaviour) Pin
Ryan Binns8-Mar-05 12:23
Ryan Binns8-Mar-05 12:23 
GeneralNot a C++ coder needing C++ help Pin
LongRange.Shooter7-Mar-05 4:21
LongRange.Shooter7-Mar-05 4:21 
GeneralRe: Not a C++ coder needing C++ help Pin
Serge Krynine7-Mar-05 14:17
Serge Krynine7-Mar-05 14:17 
GeneralRe: Not a C++ coder needing C++ help Pin
LongRange.Shooter8-Mar-05 2:11
LongRange.Shooter8-Mar-05 2:11 
GeneralRe: Not a C++ coder needing C++ help Pin
Serge Krynine8-Mar-05 13:58
Serge Krynine8-Mar-05 13:58 
GeneralSubstitute CFTPConnection Pin
densitet7-Mar-05 3:59
densitet7-Mar-05 3:59 
GeneralButton Background color and Text Pin
sweep1237-Mar-05 3:46
sweep1237-Mar-05 3:46 
GeneralStrikethrough text in CListCtrl Pin
DanYELL7-Mar-05 3:16
DanYELL7-Mar-05 3:16 
GeneralRe: Strikethrough text in CListCtrl Pin
Manfred Staiger7-Mar-05 3:37
Manfred Staiger7-Mar-05 3:37 
QuestionHow to check if logged on user has admin privileges Pin
g3e7-Mar-05 3:01
g3e7-Mar-05 3:01 
AnswerRe: How to check if logged on user has admin privileges Pin
Sheng Jiang 蒋晟7-Mar-05 15:00
Sheng Jiang 蒋晟7-Mar-05 15:00 

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.