Click here to Skip to main content
15,902,276 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: [DESPERATED]Linking probs... Pin
Jörgen Sigvardsson22-Sep-06 15:18
Jörgen Sigvardsson22-Sep-06 15:18 
GeneralRe: [DESPERATED]Linking probs... Pin
Lord Kixdemp22-Sep-06 16:52
Lord Kixdemp22-Sep-06 16:52 
GeneralRe: [DESPERATED]Linking probs... Pin
Jörgen Sigvardsson22-Sep-06 22:33
Jörgen Sigvardsson22-Sep-06 22:33 
GeneralRe: [DESPERATED]Linking probs... Pin
Lord Kixdemp23-Sep-06 12:08
Lord Kixdemp23-Sep-06 12:08 
GeneralRe: [DESPERATED]Linking probs... Pin
Jörgen Sigvardsson23-Sep-06 12:11
Jörgen Sigvardsson23-Sep-06 12:11 
GeneralRe: [DESPERATED]Linking probs... Pin
Lord Kixdemp23-Sep-06 12:33
Lord Kixdemp23-Sep-06 12:33 
AnswerRe: [DESPERATED]Linking probs... Pin
ThatsAlok22-Sep-06 17:35
ThatsAlok22-Sep-06 17:35 
Questionwhat is the use of "pOldPen" here? Pin
bloodwinner22-Sep-06 11:16
bloodwinner22-Sep-06 11:16 
the following code is from the examples on the book
[code]
CPen pen (PS_SOLID, 0, RGB (192, 192, 192));
CPen* pOldPen = dc.SelectObject (&pen);

//do some drawing staff here

dc.SelectObject (pOldPen);


I know once I create a pen, I can do some drawing staff, but why should I add "CPen* pOldPen = dc.SelectObject (&pen)" and "dc.SelectObject (pOldPen)" here? what's the use of that?

AnswerRe: what is the use of "pOldPen" here? Pin
David Crow22-Sep-06 11:23
David Crow22-Sep-06 11:23 
GeneralRe: what is the use of "pOldPen" here? Pin
bloodwinner22-Sep-06 11:30
bloodwinner22-Sep-06 11:30 
GeneralRe: what is the use of "pOldPen" here? [modified] Pin
Rob Caldecott22-Sep-06 12:21
Rob Caldecott22-Sep-06 12:21 
GeneralRe: what is the use of "pOldPen" here? Pin
Jörgen Sigvardsson22-Sep-06 14:25
Jörgen Sigvardsson22-Sep-06 14:25 
GeneralRe: SaveState()? Pin
PJ Arends22-Sep-06 16:07
professionalPJ Arends22-Sep-06 16:07 
GeneralRe: SaveState()? Pin
Jörgen Sigvardsson22-Sep-06 22:27
Jörgen Sigvardsson22-Sep-06 22:27 
GeneralRe: SaveState()? Pin
Rob Caldecott22-Sep-06 23:47
Rob Caldecott22-Sep-06 23:47 
GeneralRe: SaveState()? Pin
Hamid_RT23-Sep-06 8:57
Hamid_RT23-Sep-06 8:57 
QuestionWhich slider is active in dialog? Pin
Oliver12322-Sep-06 11:10
Oliver12322-Sep-06 11:10 
AnswerRe: Which slider is active in dialog? Pin
David Crow22-Sep-06 11:21
David Crow22-Sep-06 11:21 
GeneralRe: Which slider is active in dialog? Pin
Oliver12322-Sep-06 11:37
Oliver12322-Sep-06 11:37 
GeneralRe: Which slider is active in dialog? [modified] Pin
Oliver12322-Sep-06 14:55
Oliver12322-Sep-06 14:55 
GeneralOff topic: < and > Pin
Jörgen Sigvardsson22-Sep-06 15:21
Jörgen Sigvardsson22-Sep-06 15:21 
GeneralRe: Which slider is active in dialog? Pin
David Crow25-Sep-06 2:51
David Crow25-Sep-06 2:51 
QuestionRe: A stub for ::GetSystemMetrics Pin
David Crow22-Sep-06 10:40
David Crow22-Sep-06 10:40 
QuestionRe: dialog box menu Pin
mla15422-Sep-06 10:32
mla15422-Sep-06 10:32 
AnswerRe: dialog box menu Pin
David Crow22-Sep-06 10:36
David Crow22-Sep-06 10:36 

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.