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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. static Picture control not loading a bmp

static Picture control not loading a bmp

Scheduled Pinned Locked Moved C / C++ / MFC
c++graphicsdesigntoolshelp
6 Posts 3 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.
  • V Offline
    V Offline
    VC Maniac
    wrote on last edited by
    #1

    I am using MFC picture control for displaying bmps on property dialog boxes. So I added picture contrl from the tools and changed the type to bitmap. Then selected a bmp resource to be loaded into the control. At design time the bmp is visible but at run time its not. I have done this before but the project used a MBCS. Now its Unicode. Does that matter? If not what might be the problem? TIA

    H C 2 Replies Last reply
    0
    • V VC Maniac

      I am using MFC picture control for displaying bmps on property dialog boxes. So I added picture contrl from the tools and changed the type to bitmap. Then selected a bmp resource to be loaded into the control. At design time the bmp is visible but at run time its not. I have done this before but the project used a MBCS. Now its Unicode. Does that matter? If not what might be the problem? TIA

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      Can you show your code ?

      Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

      V 1 Reply Last reply
      0
      • H Hamid Taebi

        Can you show your code ?

        Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

        V Offline
        V Offline
        VC Maniac
        wrote on last edited by
        #3

        There is no code actually. Its all done in design time.

        1 Reply Last reply
        0
        • V VC Maniac

          I am using MFC picture control for displaying bmps on property dialog boxes. So I added picture contrl from the tools and changed the type to bitmap. Then selected a bmp resource to be loaded into the control. At design time the bmp is visible but at run time its not. I have done this before but the project used a MBCS. Now its Unicode. Does that matter? If not what might be the problem? TIA

          C Offline
          C Offline
          Code o mat
          wrote on last edited by
          #4

          Did you change from MBCS to Unicode in the same project? If yes, try cleaning and rebuilding the whole project if you did not try it yet.

          > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <

          V 2 Replies Last reply
          0
          • C Code o mat

            Did you change from MBCS to Unicode in the same project? If yes, try cleaning and rebuilding the whole project if you did not try it yet.

            > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <

            V Offline
            V Offline
            VC Maniac
            wrote on last edited by
            #5

            Thats the thing Im doing now.. I'll let you know..

            1 Reply Last reply
            0
            • C Code o mat

              Did you change from MBCS to Unicode in the same project? If yes, try cleaning and rebuilding the whole project if you did not try it yet.

              > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <

              V Offline
              V Offline
              VC Maniac
              wrote on last edited by
              #6

              But I added a new dialog, placed a picture control on it and loaded a bmp. It works fine in unicode also. I think it should not be specific to property sheets. what do you say ?

              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