Placing graphics onto a control without a valid hDC


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Placing graphics onto a control without a valid hDC

  1. #1
    Neil Chittenden Guest

    Placing graphics onto a control without a valid hDC


    Hi,

    I'm currently trying to change the picture to a coolbar control at run time.
    All the API calls I've come across need a device context for the control,
    which the coolbar doesn't have. If anyone has any ideas, it would be great
    as I've spent long enough with my coolbars already.

    Thanks for any help,

    Cheers,

    Neil

  2. #2
    Mattias Sjögren Guest

    Re: Placing graphics onto a control without a valid hDC

    Neil,

    >I'm currently trying to change the picture to a coolbar control at run time.


    Why don't you just set the Picture property?


    Matt

    ============================================
    Mattias Sjögren - mattiass @ hem.passagen.se
    CodeHound - Free VB Search Engine
    http://www.codehound.com

  3. #3
    Mattias Sjögren Guest

    Re: Placing graphics onto a control without a valid hDC

    Neil,

    >I'm currently trying to change the picture to a coolbar control at run time.


    Why don't you just set the Picture property?


    Matt

    ============================================
    Mattias Sjögren - mattiass @ hem.passagen.se
    CodeHound - Free VB Search Engine
    http://www.codehound.com

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