Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to have bitmaps in lib

How to have bitmaps in lib

Scheduled Pinned Locked Moved C / C++ / MFC
questiongraphicstutoriallearning
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jesper Knudsen
    wrote on last edited by
    #1

    I'm creating a library with som custom controls. How can I have a bitmap drawn on a custom button? When the button control is in a .lib - where to put the image? What about resource conflicts? Thanks for any comment

    J 1 Reply Last reply
    0
    • J Jesper Knudsen

      I'm creating a library with som custom controls. How can I have a bitmap drawn on a custom button? When the button control is in a .lib - where to put the image? What about resource conflicts? Thanks for any comment

      J Offline
      J Offline
      John R Shaw
      wrote on last edited by
      #2

      Put them in a DLL or ActiveX library, both types of libraries have there own resources. Their resources can not conflict with your resources, unless the DLL treats externaly supplied resource IDs the same as internaly supplied IDs. For buttons: http://www.codeproject.com/buttonctrl/[^] For libraries visit the COM or Libraries section of codeproject. INTP "The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes." Andrew W. Troelsen

      J 1 Reply Last reply
      0
      • J John R Shaw

        Put them in a DLL or ActiveX library, both types of libraries have there own resources. Their resources can not conflict with your resources, unless the DLL treats externaly supplied resource IDs the same as internaly supplied IDs. For buttons: http://www.codeproject.com/buttonctrl/[^] For libraries visit the COM or Libraries section of codeproject. INTP "The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes." Andrew W. Troelsen

        J Offline
        J Offline
        Jesper Knudsen
        wrote on last edited by
        #3

        To make it simple, I made this small utility that converts a binary file into an array of unsigned chars for the compiler to read. This enables me to #include the binary chunk directly into the source. Wooh, does this smell like good old times..

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups