Results 1 to 2 of 2

Thread: Picture with hdc ?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    I need away to find this objects
    hdc...

    Private SPics(15) As New StdPicture

    I store pics in there and I need the
    hdc of it.

    thanks

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    hDC is a device context, that means you have to have something painted on the screen in order for you to have an hDC. In your case, you store your pictures in the memory, so all you can have is a handle to the image itself, using Handle property.

    Code:
    Dim pic As StdPicture
    
    Set pic = LoadPicture("C:\MyPicture.bmp")
    MsgBox "Picture Handle: " & pic.Handle

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width