Click here to Skip to main content
15,909,445 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: InvertRgn Pin
bob1697226-Nov-07 8:56
bob1697226-Nov-07 8:56 
GeneralRe: InvertRgn Pin
Mark Salsbery26-Nov-07 9:02
Mark Salsbery26-Nov-07 9:02 
GeneralRe: InvertRgn Pin
bob1697226-Nov-07 9:20
bob1697226-Nov-07 9:20 
GeneralRe: InvertRgn Pin
bob1697226-Nov-07 10:48
bob1697226-Nov-07 10:48 
GeneralRe: InvertRgn Pin
Mark Salsbery26-Nov-07 12:53
Mark Salsbery26-Nov-07 12:53 
GeneralRe: InvertRgn Pin
bob1697226-Nov-07 18:44
bob1697226-Nov-07 18:44 
GeneralRe: InvertRgn Pin
Mark Salsbery27-Nov-07 7:18
Mark Salsbery27-Nov-07 7:18 
GeneralRe: InvertRgn Pin
bob1697227-Nov-07 9:48
bob1697227-Nov-07 9:48 
Mark Salsbery wrote:
"Do not call any methods of the Graphics object between the calls to GetHDC and ReleaseHDC."


This I've seen and try to protect against.

Mark Salsbery wrote:
If you let the Graphics class create its own DC, however, it "owns" the DC, and the DC it gives
you through GetHDC may be a temporary copy.


This would make sense as to why the original warning above even exists if I'm understanding you correctly. Are you saying the warning would revolve around the possibility that the HDC did not exist before the Graphics object came to life? I'm taking it to mean that if I provide the HDC to the constructor for a graphics object, I need not bother with Graphics::GetHDC() ?
GeneralRe: InvertRgn Pin
Mark Salsbery27-Nov-07 9:57
Mark Salsbery27-Nov-07 9:57 
GeneralRe: InvertRgn Pin
bob1697227-Nov-07 10:10
bob1697227-Nov-07 10:10 
GeneralRe: InvertRgn Pin
Mark Salsbery27-Nov-07 10:50
Mark Salsbery27-Nov-07 10:50 
QuestionLoad dll's Pin
Anthony Mushrow26-Nov-07 8:41
professionalAnthony Mushrow26-Nov-07 8:41 
AnswerRe: Load dll's Pin
Mark Salsbery26-Nov-07 8:44
Mark Salsbery26-Nov-07 8:44 
GeneralRe: Load dll's Pin
Anthony Mushrow26-Nov-07 8:49
professionalAnthony Mushrow26-Nov-07 8:49 
Questionnumber of open files limit Pin
Joezer BH26-Nov-07 8:08
professionalJoezer BH26-Nov-07 8:08 
AnswerRe: number of open files limit Pin
Mark Salsbery26-Nov-07 8:30
Mark Salsbery26-Nov-07 8:30 
AnswerRe: number of open files limit Pin
Stephen Hewitt26-Nov-07 13:08
Stephen Hewitt26-Nov-07 13:08 
QuestionTemplate function returning a variable of type T Pin
racette26-Nov-07 7:22
racette26-Nov-07 7:22 
AnswerRe: Template function returning a variable of type T Pin
Cedric Moonen26-Nov-07 7:28
Cedric Moonen26-Nov-07 7:28 
GeneralRe: Template function returning a variable of type T Pin
racette26-Nov-07 10:09
racette26-Nov-07 10:09 
QuestionGet_url: Firefox? Pin
Gofur Halmurat26-Nov-07 6:35
Gofur Halmurat26-Nov-07 6:35 
QuestionRe: Get_url: Firefox? Pin
David Crow26-Nov-07 7:23
David Crow26-Nov-07 7:23 
AnswerRe: Get_url: Firefox? Pin
Gofur Halmurat26-Nov-07 7:50
Gofur Halmurat26-Nov-07 7:50 
GeneralRe: Get_url: Firefox? Pin
ThatsAlok26-Nov-07 18:45
ThatsAlok26-Nov-07 18:45 
AnswerRe: Get_url: Firefox? Pin
Gofur Halmurat26-Nov-07 10:32
Gofur Halmurat26-Nov-07 10:32 

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.