Click here to Skip to main content
16,011,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reading CArchive in Serialize Pin
vasanth100423-May-05 7:48
vasanth100423-May-05 7:48 
GeneralRe: Reading CArchive in Serialize Pin
David Crow23-May-05 7:50
David Crow23-May-05 7:50 
GeneralRe: Reading CArchive in Serialize Pin
vasanth100423-May-05 8:02
vasanth100423-May-05 8:02 
GeneralRe: Reading CArchive in Serialize Pin
David Crow23-May-05 8:56
David Crow23-May-05 8:56 
GeneralOpenGL flickers despite double buffering Pin
User 58261923-May-05 6:58
User 58261923-May-05 6:58 
GeneralRe: OpenGL flickers despite double buffering Pin
LunaticFringe23-May-05 7:35
LunaticFringe23-May-05 7:35 
GeneralRe: OpenGL flickers despite double buffering Pin
cmk24-May-05 5:05
cmk24-May-05 5:05 
GeneralDrawing lines Pin
merkit23-May-05 6:18
merkit23-May-05 6:18 
Anybody know how to draw lines in RichEditView? I am using the following code but the line is not being drawn.

// Get Window size
CRect rcClient;
GetClientRect(&rcClient);
// Construct the pen
CRichEditCtrl &RichCtrl = GetRichEditCtrl();
CDC* pDC = RichCtrl.GetDC();
CPen MyPen(PS_SOLID, 10, pDC->GetTextColor());
CPen *pOldPen = NULL;
pOldPen = pDC->SelectObject(&MyPen);
// Draw the line
pDC->MoveTo(rcClient.left + 2, rcClient.bottom - rcClient.top);
pDC->LineTo(rcClient.right - 2, rcClient.bottom - rcClient.top);
// Return to original pen
pDC->SelectObject(pOldPen);

Since I am using RichEditView, I am not able to use the OnDraw Method. I believe the problem is getting the device context. I have also used "CDC* pDC = this->GetDC();" with the same results. Any ideas?


GeneralOnSizing not firing in dialog Pin
vineas23-May-05 5:19
vineas23-May-05 5:19 
GeneralRe: OnSizing not firing in dialog Pin
David Crow23-May-05 5:45
David Crow23-May-05 5:45 
GeneralRe: OnSizing not firing in dialog Pin
vineas23-May-05 10:53
vineas23-May-05 10:53 
GeneralRe: OnSizing not firing in dialog Pin
Shog923-May-05 12:46
sitebuilderShog923-May-05 12:46 
GeneralRe: OnSizing not firing in dialog Pin
vineas23-May-05 16:40
vineas23-May-05 16:40 
GeneralRe: OnSizing not firing in dialog Pin
vineas24-May-05 5:58
vineas24-May-05 5:58 
GeneralRe: OnSizing not firing in dialog Pin
Blake Miller23-May-05 6:51
Blake Miller23-May-05 6:51 
GeneralRe: OnSizing not firing in dialog Pin
vineas23-May-05 11:06
vineas23-May-05 11:06 
GeneralRe: OnSizing not firing in dialog Pin
Blake Miller25-May-05 4:06
Blake Miller25-May-05 4:06 
GeneralRe: OnSizing not firing in dialog Pin
vineas25-May-05 5:34
vineas25-May-05 5:34 
GeneralRe: OnSizing not firing in dialog Pin
Blake Miller25-May-05 10:25
Blake Miller25-May-05 10:25 
GeneralScreenSaver Notification Pin
Blake Miller23-May-05 5:16
Blake Miller23-May-05 5:16 
GeneralRe: ScreenSaver Notification Pin
David Crow23-May-05 5:51
David Crow23-May-05 5:51 
GeneralRe: ScreenSaver Notification Pin
Blake Miller23-May-05 6:50
Blake Miller23-May-05 6:50 
GeneralRe: ScreenSaver Notification Pin
David Crow23-May-05 7:24
David Crow23-May-05 7:24 
GeneralRe: ScreenSaver Notification Pin
Flit23-May-05 6:58
Flit23-May-05 6:58 
GeneralRe: ScreenSaver Notification Pin
Flit23-May-05 9:04
Flit23-May-05 9:04 

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.