Click here to Skip to main content
15,920,053 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to email a page??? Pin
xxhimanshu25-Sep-03 2:28
xxhimanshu25-Sep-03 2:28 
AnswerRe: how to email a page??? Pin
David Crow25-Sep-03 5:06
David Crow25-Sep-03 5:06 
QuestionWhy do I receive WM_SETFOCUS only once? Pin
linjie25-Sep-03 2:09
linjie25-Sep-03 2:09 
AnswerRe: Why do I receive WM_SETFOCUS only once? Pin
David Crow25-Sep-03 2:20
David Crow25-Sep-03 2:20 
AnswerRe: Why do I receive WM_SETFOCUS only once? Pin
vcplusplus25-Sep-03 3:44
vcplusplus25-Sep-03 3:44 
QuestionICopyHook any help ? Pin
CEx25-Sep-03 1:47
CEx25-Sep-03 1:47 
AnswerRe: ICopyHook any help ? Pin
Michael Dunn25-Sep-03 4:49
sitebuilderMichael Dunn25-Sep-03 4:49 
GeneralRe: ICopyHook any help ? Pin
CEx26-Sep-03 23:56
CEx26-Sep-03 23:56 
GeneralUsing crystal reports with VC++ Pin
Mr Bose Dayala25-Sep-03 1:39
Mr Bose Dayala25-Sep-03 1:39 
GeneralVS6 Workspaces and Projects Pin
HeiniBlad25-Sep-03 0:55
HeiniBlad25-Sep-03 0:55 
GeneralRecord Number of Windows Pin
vancouver77725-Sep-03 0:13
vancouver77725-Sep-03 0:13 
GeneralRe: Record Number of Windows Pin
yfmain25-Sep-03 0:31
yfmain25-Sep-03 0:31 
GeneralBOOL and bool Pin
Saurabh_Delhi25-Sep-03 0:12
Saurabh_Delhi25-Sep-03 0:12 
GeneralRe: BOOL and bool Pin
RChin25-Sep-03 0:47
RChin25-Sep-03 0:47 
GeneralRe: BOOL and bool Pin
Dangleberry25-Sep-03 1:12
sussDangleberry25-Sep-03 1:12 
GeneralRe: BOOL and bool Pin
Michael Dunn25-Sep-03 4:52
sitebuilderMichael Dunn25-Sep-03 4:52 
GeneralRe: BOOL and bool Pin
vcplusplus25-Sep-03 5:02
vcplusplus25-Sep-03 5:02 
Generalfingerprints recognition Pin
jimmy_me24-Sep-03 23:35
jimmy_me24-Sep-03 23:35 
QuestionSelectObject? Pin
Zizilamoroso24-Sep-03 23:33
Zizilamoroso24-Sep-03 23:33 
AnswerRe: SelectObject? Pin
Anonymous24-Sep-03 23:46
Anonymous24-Sep-03 23:46 
AnswerRe: SelectObject? Pin
Steve S25-Sep-03 1:00
Steve S25-Sep-03 1:00 
You could try

dc.SaveDC();


and


dc.RestoreDC(-1);

to save and restore the DC state. That should work.
The brush and any other objects can only be destroyed if they are not being referred to by the DC, so your stuff should work anyway...

Steve S
GeneralRe: SelectObject? Pin
Zizilamoroso25-Sep-03 1:37
Zizilamoroso25-Sep-03 1:37 
GeneralRe: SelectObject? Pin
Steve S25-Sep-03 1:40
Steve S25-Sep-03 1:40 
GeneralRe: SelectObject? Pin
Zizilamoroso25-Sep-03 1:55
Zizilamoroso25-Sep-03 1:55 
GeneralRe: SelectObject? Pin
Steve S25-Sep-03 2:08
Steve S25-Sep-03 2:08 

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.