|
-
Nov 5th, 2002, 05:05 PM
#1
Thread Starter
New Member
SelectObject problem
Can someone help me out? I am new to using DC's and working with pictures, and I am running into a problem. I am trying to select an object to create a dc by doing the following:
Dim DC As Long
Dim Temp As IPictureDisp
DC = CreateCompatibleDC(frmHold.hdc)
Set Temp = frmHold.imgBeginner.Picture
SelectObject DC, Temp
srcDC=DC
DeleteObject Temp
Set Temp = Nothing
Everything works fine up to this point. The DC is created that I want to work with, and I can manipulate the picture just like I want. However, when I go and take a look at my imgBeginner picture, it is wiped out and I can't access it anymore. Why is this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|