I'm making a user control that has a picture property that user can speicify, and I need to be able to create a DC for it so I can use BitBlt etc. How would I go about doing that? I'm using this:
VB Code:
Dim lngDC As Long lngDC = CreateCompatibleDC(0) If lngDC > 0 Then SelectObject lngDC, m_Picture
or something to that effect, and then using ReleaseDC to free the memory, but it's not working properly. If you need more background on my problem I can give it.




Reply With Quote