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

C / C++ / MFC

 
QuestionRe: Free Book MFC internals by scott wingo Pin
David Crow27-Nov-06 5:21
David Crow27-Nov-06 5:21 
QuestionUnusual problem Pin
harsha_123426-Nov-06 21:33
harsha_123426-Nov-06 21:33 
AnswerRe: Unusual problem Pin
David Crow27-Nov-06 5:23
David Crow27-Nov-06 5:23 
QuestionHow to change the file version of o/p exe file property in VC .Net [modified] Pin
rp_suman26-Nov-06 21:30
rp_suman26-Nov-06 21:30 
AnswerRe: How to change the file version of o/p exe file property in VC .Net Pin
XtremDev26-Nov-06 21:32
XtremDev26-Nov-06 21:32 
QuestionHow to get memory usage of my program using ToolHelp32-API Pin
cy163@hotmail.com26-Nov-06 21:21
cy163@hotmail.com26-Nov-06 21:21 
Question"Paint" Separator on Dialog? Pin
bosfan26-Nov-06 21:05
bosfan26-Nov-06 21:05 
AnswerRe: "Paint" Separator on Dialog? Pin
XtremDev26-Nov-06 21:22
XtremDev26-Nov-06 21:22 
override the OnPaint() function and add this code :

CRect l_rctClient;<br />
GetClientRect(&l_rctClient);<br />
<br />
CDC * l_pDC = GetDC();<br />
<br />
CPen l_GrayPen(PS_SOLID, 1, RGB(100, 100, 100));<br />
CPen l_WhitePen(PS_SOLID, 1, RGB(255, 255, 255));<br />
<br />
int l_nYLine = l_rctClient.top + l_rctClient.Height()/2; // example for your line y coordinate<br />
//could also be<br />
//GetDlgItem(IDC_MYITEM)->GetClientRect(l_rctItem);<br />
//int l_nYLine = l_rctItem.bottom+10;<br />
<br />
CPen * l_pOldPen = l_pDC->SelectObject(&l_GrayPen);<br />
l_pDC->MoveTo(l_rctClient.left+2, l_nYLine);<br />
l_pDC->LineTo(l_rctClient.right-2, l_nYLine);<br />
<br />
l_pDC->SelectObject(&l_WhitePen);<br />
l_pDC->MoveTo(l_rctClient.left+2, l_nYLine+1);<br />
l_pDC->LineTo(l_rctClient.right-2, l_nYLine+1);<br />
<br />
l_pDC->SelectObject(l_pOldPen);<br />
<br />
ReleaseDC(l_pDC);

GeneralRe: "Paint" Separator on Dialog? [modified] Pin
bosfan27-Nov-06 2:16
bosfan27-Nov-06 2:16 
GeneralRe: "Paint" Separator on Dialog? Pin
XtremDev27-Nov-06 3:40
XtremDev27-Nov-06 3:40 
GeneralRe: &quot;Paint&quot; Separator on Dialog? Pin
bosfan27-Nov-06 4:05
bosfan27-Nov-06 4:05 
AnswerRe: "Paint" Separator on Dialog? Pin
David Crow27-Nov-06 5:42
David Crow27-Nov-06 5:42 
QuestionHow to disable the joystick by programming Pin
LaHaHa26-Nov-06 20:42
LaHaHa26-Nov-06 20:42 
Questionplease help me i have this warning and my aplication failed to start ! Pin
Bravoone_200626-Nov-06 20:31
Bravoone_200626-Nov-06 20:31 
AnswerRe: please help me i have this warning and my aplication failed to start ! Pin
Cedric Moonen26-Nov-06 20:55
Cedric Moonen26-Nov-06 20:55 
AnswerRe: please help me i have this warning and my aplication failed to start ! Pin
CPallini26-Nov-06 21:20
mveCPallini26-Nov-06 21:20 
AnswerRe: please help me i have this warning and my aplication failed to start ! Pin
Bravoone_200626-Nov-06 21:30
Bravoone_200626-Nov-06 21:30 
QuestionHow to create Marathi Menus,Captions. Pin
Atul2326-Nov-06 20:13
Atul2326-Nov-06 20:13 
AnswerRe: How to create Marathi Menus,Captions. Pin
Mahesh Kulkarni26-Nov-06 23:40
Mahesh Kulkarni26-Nov-06 23:40 
QuestionHaven't been coding C for awhile --- I want a string tokenizer Pin
devvvy26-Nov-06 20:09
devvvy26-Nov-06 20:09 
AnswerRe: Haven't been coding C for awhile --- I want a string tokenizer Pin
Mila02526-Nov-06 20:30
Mila02526-Nov-06 20:30 
QuestionAlt + Selection key Pin
DivyaRS26-Nov-06 19:33
DivyaRS26-Nov-06 19:33 
AnswerRe: Alt + Selection key Pin
Vinod Sankaranarayanan26-Nov-06 20:20
Vinod Sankaranarayanan26-Nov-06 20:20 
QuestionDB problem [modified] Pin
firebow300726-Nov-06 19:19
firebow300726-Nov-06 19:19 
AnswerRe: DB problem Pin
S Douglas26-Nov-06 22:22
professionalS Douglas26-Nov-06 22:22 

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.