Click here to Skip to main content
15,905,963 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can get Domain name in given URL? Pin
Code-o-mat18-Oct-10 8:58
Code-o-mat18-Oct-10 8:58 
Questionfitnesse about C++ Pin
lxlenovostar18-Oct-10 2:12
lxlenovostar18-Oct-10 2:12 
AnswerRe: fitnesse about C++ Pin
Maximilien18-Oct-10 3:42
Maximilien18-Oct-10 3:42 
GeneralRe: fitnesse about C++ Pin
lxlenovostar18-Oct-10 3:59
lxlenovostar18-Oct-10 3:59 
GeneralRe: fitnesse about C++ Pin
Richard MacCutchan18-Oct-10 9:31
mveRichard MacCutchan18-Oct-10 9:31 
GeneralRe: fitnesse about C++ Pin
lxlenovostar18-Oct-10 15:57
lxlenovostar18-Oct-10 15:57 
GeneralRe: fitnesse about C++ Pin
Aescleal18-Oct-10 21:39
Aescleal18-Oct-10 21:39 
GeneralRe: fitnesse about C++ Pin
lxlenovostar18-Oct-10 23:12
lxlenovostar18-Oct-10 23:12 
GeneralRe: fitnesse about C++ Pin
lxlenovostar19-Oct-10 20:43
lxlenovostar19-Oct-10 20:43 
GeneralRe: fitnesse about C++ Pin
Aescleal20-Oct-10 7:36
Aescleal20-Oct-10 7:36 
QuestionProblem with SelectObject() Pin
ashtwin17-Oct-10 23:52
ashtwin17-Oct-10 23:52 
AnswerRe: Problem with SelectObject() Pin
Cedric Moonen18-Oct-10 0:05
Cedric Moonen18-Oct-10 0:05 
GeneralRe: Problem with SelectObject() Pin
ashtwin18-Oct-10 0:34
ashtwin18-Oct-10 0:34 
GeneralRe: Problem with SelectObject() Pin
Sauro Viti18-Oct-10 0:42
professionalSauro Viti18-Oct-10 0:42 
You can reuse the device-context how many times you want. The only thing you should be aware of is that:


  1. each time you select a GDI object (font, pen, brush, etc.) into a device-context you should restore the one that it held originally
  2. you should not save the pointers returned by SelectObject to restore them later, because they could be temporary. To be more specific, the objects pointed could be destroyed during the idle-time of your application (i.e. inside the CWinApp::OnIdle). This means that you should restore these objects before returning from the message handler on which you have called SelectObject

GeneralRe: Problem with SelectObject() Pin
ashtwin18-Oct-10 1:49
ashtwin18-Oct-10 1:49 
GeneralRe: Problem with SelectObject() Pin
Sauro Viti18-Oct-10 1:57
professionalSauro Viti18-Oct-10 1:57 
GeneralRe: Problem with SelectObject() Pin
Niklas L18-Oct-10 2:07
Niklas L18-Oct-10 2:07 
GeneralRe: Problem with SelectObject() Pin
ashtwin18-Oct-10 2:27
ashtwin18-Oct-10 2:27 
QuestionIntegrate ActiveX C# in C++ form Pin
MrKBA17-Oct-10 23:29
MrKBA17-Oct-10 23:29 
AnswerRe: Integrate ActiveX C# in C++ form Pin
CPallini18-Oct-10 0:07
mveCPallini18-Oct-10 0:07 
Questionwhen hit F5(Run) on C++\MFC proj in VC++.NET 2003- resource file is always out of date Pin
Dorith17-Oct-10 22:59
Dorith17-Oct-10 22:59 
Questionwho will create the message loop and message queue? Pin
vasu_sri17-Oct-10 21:40
vasu_sri17-Oct-10 21:40 
AnswerRe: who will create the message loop and message queue? Pin
bleedingfingers17-Oct-10 21:48
bleedingfingers17-Oct-10 21:48 
GeneralRe: who will create the message loop and message queue? Pin
CPallini18-Oct-10 2:12
mveCPallini18-Oct-10 2:12 
GeneralRe: who will create the message loop and message queue? Pin
bleedingfingers18-Oct-10 2:40
bleedingfingers18-Oct-10 2:40 

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.