Click here to Skip to main content
15,914,071 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Constants optimization Pin
hint_5426-Nov-07 11:50
hint_5426-Nov-07 11:50 
JokeRe: Constants optimization Pin
Nelek26-Nov-07 20:10
protectorNelek26-Nov-07 20:10 
GeneralRe: Constants optimization Pin
hint_5426-Nov-07 23:56
hint_5426-Nov-07 23:56 
QuestionInvertRgn Pin
bob1697226-Nov-07 8:44
bob1697226-Nov-07 8:44 
AnswerRe: InvertRgn Pin
Mark Salsbery26-Nov-07 8:47
Mark Salsbery26-Nov-07 8:47 
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 
That worked so I'm just fudging something up in my mess here.

I'm mixing GDI mappping modes, memory backed DC's, GDI+ graphics objects, and somewhere in the midst of the drawing I'm plopping a quick detour...

HDC hdc=graphics.GetHDC();
// detour to use ::InvertRgn
graphics.ReleaseHDC(hdc);

I'm using a region handle form a GDI+ region so I'll dig through it and I'm sure the culprit is in there somewhere.

Thanks for your help and guidance and quick proof of concept. It is much appreciated.



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 
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 

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.