Click here to Skip to main content
15,888,454 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can I get the name of Win CE device? Pin
Matthew Faithfull14-Dec-07 3:54
Matthew Faithfull14-Dec-07 3:54 
AnswerRe: How can I get the name of Win CE device? Pin
Alain Rist14-Dec-07 7:05
Alain Rist14-Dec-07 7:05 
GeneralMake use SDI features in Dialog based applications Pin
varun0113-Dec-07 23:53
varun0113-Dec-07 23:53 
GeneralRe: Make use SDI features in Dialog based applications Pin
Nelek14-Dec-07 0:02
protectorNelek14-Dec-07 0:02 
Questiondrawline for VC++ Pin
mercenary0113-Dec-07 23:45
mercenary0113-Dec-07 23:45 
GeneralRe: drawline for VC++ Pin
Nelek13-Dec-07 23:59
protectorNelek13-Dec-07 23:59 
GeneralRe: drawline for VC++ Pin
mercenary0114-Dec-07 1:01
mercenary0114-Dec-07 1:01 
GeneralRe: drawline for VC++ Pin
Nelek14-Dec-07 2:48
protectorNelek14-Dec-07 2:48 
You didnt associate the DC to a window. If you are in a dialog... one way to do it is:

void CMyDialog::OnPaint() 
{	CPaintDC dc(this); // device context for painting
	
	pDC->MoveTo (0, 0);
	pDC->LineTo (100, 100); 	

	return;
}


OnPaint is a message of the dialog, to get it go to assistant and look for it.

Greetings.
--------
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson

GeneralNelek you missed a point! Pin
CPallini14-Dec-07 3:00
mveCPallini14-Dec-07 3:00 
GeneralRe: Nelek you missed a point! Pin
Nelek16-Dec-07 21:41
protectorNelek16-Dec-07 21:41 
GeneralRe: drawline for VC++ Pin
CPallini14-Dec-07 2:56
mveCPallini14-Dec-07 2:56 
GeneralRe: drawline for VC++ Pin
Iain Clarke, Warrior Programmer14-Dec-07 1:06
Iain Clarke, Warrior Programmer14-Dec-07 1:06 
GeneralRe: drawline for VC++ Pin
Nishad S14-Dec-07 1:35
Nishad S14-Dec-07 1:35 
GeneralRe: drawline for VC++ Pin
Nishad S14-Dec-07 1:39
Nishad S14-Dec-07 1:39 
GeneralRe: drawline for VC++ Pin
mercenary0114-Dec-07 2:38
mercenary0114-Dec-07 2:38 
GeneralRe: drawline for VC++ Pin
Nelek14-Dec-07 2:51
protectorNelek14-Dec-07 2:51 
GeneralRe: drawline for VC++ Pin
mercenary0114-Dec-07 3:01
mercenary0114-Dec-07 3:01 
GeneralRe: drawline for VC++ Pin
David Crow14-Dec-07 3:28
David Crow14-Dec-07 3:28 
GeneralRe: drawline for VC++ Pin
mercenary0114-Dec-07 3:56
mercenary0114-Dec-07 3:56 
GeneralRe: drawline for VC++ Pin
David Crow14-Dec-07 4:26
David Crow14-Dec-07 4:26 
JokeRe: drawline for VC++ Pin
CPallini14-Dec-07 3:32
mveCPallini14-Dec-07 3:32 
GeneralOffline [modified] Pin
Nelek16-Dec-07 21:45
protectorNelek16-Dec-07 21:45 
QuestionRe: drawline for VC++ Pin
David Crow14-Dec-07 3:23
David Crow14-Dec-07 3:23 
GeneralRe: drawline for VC++ Pin
Mark Salsbery14-Dec-07 5:23
Mark Salsbery14-Dec-07 5:23 
GeneralRe: drawline for VC++ Pin
mercenary0114-Dec-07 15:59
mercenary0114-Dec-07 15:59 

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.