Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Obtaining a CDC* to a dialog - HELP!!

Status
Not open for further replies.

qedusa

Programmer
Jan 12, 2002
43
US
How do I create or obtain a CDC* to a dialog in a dialog based MFC project. The closest thing supplied by MFC is a CPaintDC. When I try to create my own CDC* to draw things to the main dialog, it draws using global coordinates and also draws outside the actual dialog.
This is probably a silly little thing I'm overlooking but there is no OnDraw function available to supply me with a CDC*.
Any help would be appreciated.

Nick
 
Hi Matt,
Thanks for the speedy response!! Just using myDialog.GetDC() works like a charm - I think I must've left my brain in bed this morning!!
Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top