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. How to display a bitmap when starting an application?

How to display a bitmap when starting an application?

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studiographicsadobehelp
5 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.
  • J Offline
    J Offline
    jean michel vanye
    wrote on last edited by
    #1

    Hello, I'm looking about a sample program who displays a bitmap when the application starts. (like Adobe Acrobat Reader, Microsoft Word) I'm working with Visual Studio 6.0 and a Dialog Based application. I can display a dialog box and close automatically it after 5 seconds but I can't display the bitmap inside this resource. Who can help me? Regards,

    I J 2 Replies Last reply
    0
    • J jean michel vanye

      Hello, I'm looking about a sample program who displays a bitmap when the application starts. (like Adobe Acrobat Reader, Microsoft Word) I'm working with Visual Studio 6.0 and a Dialog Based application. I can display a dialog box and close automatically it after 5 seconds but I can't display the bitmap inside this resource. Who can help me? Regards,

      I Offline
      I Offline
      iceage
      wrote on last edited by
      #2

      go to: Project->Add To Project->Components and Controls->Visual C++ Components->Splash screen

      J 1 Reply Last reply
      0
      • I iceage

        go to: Project->Add To Project->Components and Controls->Visual C++ Components->Splash screen

        J Offline
        J Offline
        jean michel vanye
        wrote on last edited by
        #3

        I tried but it failed. A message box is displayed: 'Cannot find the main frame class. Please confirm that this project contains a class named CMainFrame.' After closing the messagebox, I stay on the components and controls gallery screen. It's maybe due to my project based on dialog boxes. I will try to create the new Class CMainFrame. What can I do more?

        1 Reply Last reply
        0
        • J jean michel vanye

          Hello, I'm looking about a sample program who displays a bitmap when the application starts. (like Adobe Acrobat Reader, Microsoft Word) I'm working with Visual Studio 6.0 and a Dialog Based application. I can display a dialog box and close automatically it after 5 seconds but I can't display the bitmap inside this resource. Who can help me? Regards,

          J Offline
          J Offline
          jhwurmbach
          wrote on last edited by
          #4

          jmi.vanye@skynet.be wrote: I can display a dialog box and close automatically it after 5 seconds but I can't display the bitmap inside this resource. Can't you simply make this splash-dialog a button? A button can display a bmp, and you have access to all sort of messages.


          Who is 'General Failure'? And why is he reading my harddisk?!?

          J 1 Reply Last reply
          0
          • J jhwurmbach

            jmi.vanye@skynet.be wrote: I can display a dialog box and close automatically it after 5 seconds but I can't display the bitmap inside this resource. Can't you simply make this splash-dialog a button? A button can display a bmp, and you have access to all sort of messages.


            Who is 'General Failure'? And why is he reading my harddisk?!?

            J Offline
            J Offline
            jean michel vanye
            wrote on last edited by
            #5

            Thank you for your help. I have found the solution into the project: Dialog Splash Demo. a .cpp and .h files are provided and it works well. The files are SplashWnd.cpp and SplashWnd.h. Regards, Jean-Michel

            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