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

C / C++ / MFC

 
GeneralRe: Background thread Pin
RuchikaDhingra9-May-03 6:27
RuchikaDhingra9-May-03 6:27 
GeneralRe: Background thread Pin
John R. Shaw9-May-03 8:19
John R. Shaw9-May-03 8:19 
QuestionHow to launch application into background using ShellExecuteEx Pin
bluntagain8-May-03 14:10
bluntagain8-May-03 14:10 
AnswerRe: How to launch application into background using ShellExecuteEx Pin
John R. Shaw8-May-03 16:43
John R. Shaw8-May-03 16:43 
GeneralIE CDhtmlDialog PBm Pin
RaajaOfSelf8-May-03 13:05
RaajaOfSelf8-May-03 13:05 
GeneralRe: IE CDhtmlDialog PBm Pin
Joan M8-May-03 23:52
professionalJoan M8-May-03 23:52 
GeneralRe: IE CDhtmlDialog PBm Pin
RaajaOfSelf9-May-03 0:00
RaajaOfSelf9-May-03 0:00 
GeneralGDI+ OnPaint Pin
Hammerfall8-May-03 12:38
Hammerfall8-May-03 12:38 
I'm having a little problem with trying to use one app to get two GDI+ windows up. I am using MFC.

I was origonally initializing GDI+ graphics as ::

Graphics graphics(::GetDC(m_hWnd));

And whenever two GDI+ screens overlapped, one would not reprint however, mouse movements on that window would still work). I changed the above to :::

CPaintDC dc(this);
Graphics graphics(dc.m_hDC);.

And right now, both screens are active, meaning if I move one over the next, both would reprint, however, they would not reprint on command, meaning that if I move my mouse over a button, it would internally change the variable to highlight, but the display would not get displayed.

Using method # 1, displays the graphics whenever possible, but using #2 only displays it on a window resize... I am putting the code inside the OnPaint function.

Any ideas? I have no idea why the behavior is different. Can one app have two GDI+ windows constantly repainting? I am using CS_OWNDC.

Thanks for the suggestions!
GeneralIntegrating MapPoint into MFC application Pin
Sridhar Sanikommu8-May-03 11:20
Sridhar Sanikommu8-May-03 11:20 
GeneralPrint margins for RichEditView Pin
C Turtle8-May-03 10:49
C Turtle8-May-03 10:49 
GeneralRe: Print margins for RichEditView Pin
G. Steudtel9-May-03 1:20
G. Steudtel9-May-03 1:20 
GeneralRe: Print margins for RichEditView Pin
C Turtle9-May-03 5:30
C Turtle9-May-03 5:30 
GeneralRe: Print margins for RichEditView Pin
G. Steudtel12-May-03 1:35
G. Steudtel12-May-03 1:35 
GeneralRe: Print margins for RichEditView Pin
C Turtle13-May-03 3:17
C Turtle13-May-03 3:17 
QuestionCString to int ? Pin
Dominik Reichl8-May-03 8:37
Dominik Reichl8-May-03 8:37 
AnswerRe: CString to int ? Pin
Heiko20038-May-03 8:40
sussHeiko20038-May-03 8:40 
GeneralRe: CString to int ? Pin
Dominik Reichl8-May-03 8:57
Dominik Reichl8-May-03 8:57 
GeneralRe: CString to int ? Pin
Jon Hulatt8-May-03 23:52
Jon Hulatt8-May-03 23:52 
GeneralRe: CString to int ? Pin
David Crow8-May-03 9:13
David Crow8-May-03 9:13 
GeneralRe: CString to int ? Pin
Heiko20038-May-03 23:11
sussHeiko20038-May-03 23:11 
GeneralRe: CString to int ? Pin
User 66588-May-03 10:12
User 66588-May-03 10:12 
GeneralRe: CString to int ? Pin
Trollslayer9-May-03 1:21
mentorTrollslayer9-May-03 1:21 
GeneralAdapt window size Pin
gmlnd8-May-03 7:59
gmlnd8-May-03 7:59 
GeneralRe: Adapt window size Pin
Chris Losinger8-May-03 8:25
professionalChris Losinger8-May-03 8:25 
GeneralRe: Adapt window size Pin
Anonymous8-May-03 10:31
Anonymous8-May-03 10:31 

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.