Get the Bitmap Handle that is currently selected into a HDC


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Get the Bitmap Handle that is currently selected into a HDC

  1. #1
    Scott Stanaland Guest

    Get the Bitmap Handle that is currently selected into a HDC

    How can I get the gitmap gandle that is currently selected into a HDC?

    I need the handle of the bitmap so I can call getobject to find out the
    dimensions of the bitmap,
    but I can't figure out how to get the currently selected bitmap.

    I know that if I call selectobject with a new bitmap handle it will return
    the handle to the old bitmap
    handle, but it seems like there should be a easier way.

    I'm sure it must be something simple that I am overlooking.

    TIA
    Scott




  2. #2
    Scott Stanaland Guest

    Re: Get the Bitmap Handle that is currently selected into a HDC

    Ok I found it GetCurrentObject.
    DUH!!! How did I miss that one?

    Sorry!!

    Scott

    Scott Stanaland <stanland@bellsouth.net> wrote in message
    news:392ab582@news.devx.com...
    > How can I get the gitmap gandle that is currently selected into a HDC?
    >
    > I need the handle of the bitmap so I can call getobject to find out the
    > dimensions of the bitmap,
    > but I can't figure out how to get the currently selected bitmap.
    >
    > I know that if I call selectobject with a new bitmap handle it will return
    > the handle to the old bitmap
    > handle, but it seems like there should be a easier way.
    >
    > I'm sure it must be something simple that I am overlooking.
    >
    > TIA
    > Scott
    >
    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center