Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting IP from a broadband router Pin
Frank Deo16-Nov-01 5:07
Frank Deo16-Nov-01 5:07 
GeneralRe: Getting IP from a broadband router Pin
Michael Dunn16-Nov-01 6:23
sitebuilderMichael Dunn16-Nov-01 6:23 
GeneralRe: tracert > traceroute Pin
Masaaki Onishi16-Nov-01 7:01
Masaaki Onishi16-Nov-01 7:01 
GeneralRe: Getting IP from a broadband router Pin
Anders Molin16-Nov-01 9:05
professionalAnders Molin16-Nov-01 9:05 
GeneralVanishing bitmap in 2000 Pin
16-Nov-01 0:35
suss16-Nov-01 0:35 
GeneralGetDC from CMainFrame Pin
hierro16-Nov-01 0:29
hierro16-Nov-01 0:29 
GeneralRe: GetDC from CMainFrame Pin
Nish Nishant16-Nov-01 0:50
sitebuilderNish Nishant16-Nov-01 0:50 
GeneralRe: GetDC from CMainFrame Pin
#realJSOP17-Nov-01 3:19
professional#realJSOP17-Nov-01 3:19 
Just because you're getting the DC doesn't mean your drawing parameters are setup. I would write a view function that sets any drawing parameters you need (startpoints, endpoints, color, etc) and that then calls Invalidate() (calling Invalidate() causes OnDraw() to be called). Of course, you'll have to change your OnDraw() function, possibly add some code to populate some structs or something, and make other minor changes to facilitate what you want to do.

The key is to do all of the drawing in (or from) your OnDraw() function.





"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
GeneralRe: GetDC from CMainFrame Pin
#realJSOP19-Nov-01 2:41
professional#realJSOP19-Nov-01 2:41 
GeneralRe: GetDC from CMainFrame Pin
hierro19-Nov-01 18:14
hierro19-Nov-01 18:14 
GeneralRe: GetDC from CMainFrame Pin
#realJSOP20-Nov-01 2:59
professional#realJSOP20-Nov-01 2:59 
GeneralDrawText(String,&Rect,DT_VCENTER|DT_WORDBREAK) doesn't work Pin
jade_dragon16-Nov-01 0:23
jade_dragon16-Nov-01 0:23 
GeneralRe: DrawText(String,&Rect,DT_VCENTER|DT_WORDBREAK) doesn't work Pin
Chris Maunder16-Nov-01 1:03
cofounderChris Maunder16-Nov-01 1:03 
GeneralThank you for your replay,but ... Pin
jade_dragon16-Nov-01 3:43
jade_dragon16-Nov-01 3:43 
GeneralRe: Thank you for your replay,but ... Pin
16-Nov-01 7:41
suss16-Nov-01 7:41 
Generalproblem to run nmake in the createprocess function Pin
BegZ15-Nov-01 23:20
BegZ15-Nov-01 23:20 
GeneralMessage handling with derived class Pin
15-Nov-01 22:48
suss15-Nov-01 22:48 
GeneralMFC 4.2 and 7.0 Pin
15-Nov-01 22:02
suss15-Nov-01 22:02 
GeneralMemory Free Pin
EricXu15-Nov-01 21:31
EricXu15-Nov-01 21:31 
GeneralRe: Memory Free Pin
Joaquín M López Muñoz16-Nov-01 3:04
Joaquín M López Muñoz16-Nov-01 3:04 
GeneralMultiple views, same document Pin
15-Nov-01 21:20
suss15-Nov-01 21:20 
GeneralRe: Multiple views, same document Pin
Michael P Butler15-Nov-01 22:17
Michael P Butler15-Nov-01 22:17 
GeneralRe: Multiple views, same document Pin
15-Nov-01 22:26
suss15-Nov-01 22:26 
GeneralAbout MouseMove and image Pin
chen15-Nov-01 21:03
chen15-Nov-01 21:03 
GeneralAdding text instead of icon in TrayIcon Pin
og15-Nov-01 20:32
og15-Nov-01 20: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.