Skip to main content
gamedev.net
🔒 Locked

getdc

Started by chm Nov 25, 2001 at 12:38 PM 2 replies 150+ views
Original Post
chm
chm
hi i wan to use the getpixelmethod to examine a Bitmap pbject however it requires a hdc..i''m new to these and wonder how could i create a hdc to use for my purpose.
Tsiporet
Tsiporet
I recommend something like this:

CDC* pDC=new CDC;
::CreadeDC();// or ::CreateCompatibleDC
//(pAlreadyExistingCDCIfThereIsOne)
//Now use it with pDC->m_hWnd
::ReleaseDC();

Good luck, Gil.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.