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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Device context

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi

I need to create a device context called pMemDC which is 600 by 500 pixels large. I will use this device context to BitBlt bitmaps into it. Can anyone tell me how to create this device context?

Thanks
 

//Create a SIZE object
// Here r-l=600; b-t=500;
CSize lpSize(600,500);

// COnvert from logical to device units
LPtoDP(lpSize);


CDC* pDc = new CDC();

// Set the viewport's size
pDC->SetViewPortExt((SIZE)lpSize);

Hope this is a lead.

Abp

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top