Click here to Skip to main content
15,895,283 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to Launch IE with ShellExecute? Pin
Ryan Binns27-Jul-04 18:39
Ryan Binns27-Jul-04 18:39 
AnswerRe: how to Launch IE with ShellExecute? Pin
Archer28227-Jul-04 19:26
Archer28227-Jul-04 19:26 
GeneralRe: how to Launch IE with ShellExecute? Pin
Dody_DK28-Jul-04 0:30
Dody_DK28-Jul-04 0:30 
GeneralRe: how to Launch IE with ShellExecute? Pin
Ravi Bhavnani28-Jul-04 13:54
professionalRavi Bhavnani28-Jul-04 13:54 
QuestionHow to change combo styles in runtime Pin
Ivan Cachicatari27-Jul-04 10:57
Ivan Cachicatari27-Jul-04 10:57 
AnswerRe: How to change combo styles in runtime Pin
David Crow28-Jul-04 4:00
David Crow28-Jul-04 4:00 
GeneralA couple of questions... Pin
0v3rloader27-Jul-04 10:07
0v3rloader27-Jul-04 10:07 
GeneralRe: A couple of questions... Pin
Ryan Binns27-Jul-04 18:49
Ryan Binns27-Jul-04 18:49 
dNimrod#X wrote:
What is the purpose of de-selecting the GDI objects?

The Windows docs state that you should release the DC in the same state as it was when you got it, ie. it should have all the same GDI objects selected, ideally the same mapping mode, background colour etc. Most of the time, Windows can handle any changes, but sometimes it falls over in a giant steaming heap Smile | :)

dNimrod#X wrote:
CDC *pDC;
pDC = new CDC;
pDC -> Attach(GetDC() -> GetSafeHdc());


What is the reason for doing this? Why not just do
CDC *pDC = GetDC();


Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

GeneralRe: A couple of questions... Pin
0v3rloader28-Jul-04 0:50
0v3rloader28-Jul-04 0:50 
GeneralRe: A couple of questions... Pin
Tomasz Sowinski28-Jul-04 1:00
Tomasz Sowinski28-Jul-04 1:00 
Questionhow make make an image with system colors? Pin
Kamis27-Jul-04 8:37
Kamis27-Jul-04 8:37 
AnswerRe: how make make an image with system colors? Pin
Ryan Binns27-Jul-04 19:07
Ryan Binns27-Jul-04 19:07 
GeneralRe: how make make an image with system colors? Pin
Kamis27-Jul-04 23:18
Kamis27-Jul-04 23:18 
QuestionHow do I create a "floating" dialog box? Pin
shihuik27-Jul-04 6:33
shihuik27-Jul-04 6:33 
AnswerRe: How do I create a "floating" dialog box? Pin
David Crow27-Jul-04 7:55
David Crow27-Jul-04 7:55 
GeneralIDE Bug/Problem Pin
sweep12327-Jul-04 6:14
sweep12327-Jul-04 6:14 
GeneralRe: IDE Bug/Problem Pin
David Crow27-Jul-04 8:09
David Crow27-Jul-04 8:09 
GeneralRe: IDE Bug/Problem Pin
sweep12327-Jul-04 22:02
sweep12327-Jul-04 22:02 
GeneralRe: IDE Bug/Problem Pin
David Crow28-Jul-04 3:58
David Crow28-Jul-04 3:58 
GeneralRe: IDE Bug/Problem Pin
sweep12328-Jul-04 6:29
sweep12328-Jul-04 6:29 
Generalcpu performance Pin
hph27-Jul-04 4:59
hph27-Jul-04 4:59 
GeneralRe: cpu performance Pin
David Crow27-Jul-04 8:05
David Crow27-Jul-04 8:05 
GeneralRe: cpu performance Pin
bikram singh27-Jul-04 8:06
bikram singh27-Jul-04 8:06 
GeneralNT: Use Performance Counters Pin
bikram singh27-Jul-04 8:09
bikram singh27-Jul-04 8:09 
QuestionUpper limit of stack size increase..?? Pin
Shiva Prasad27-Jul-04 4:44
Shiva Prasad27-Jul-04 4:44 

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.