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. BitMap button

BitMap button

Scheduled Pinned Locked Moved C / C++ / MFC
c++graphics
7 Posts 5 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.
  • A Offline
    A Offline
    Anu_Bala
    wrote on last edited by
    #1

    Hi, In one of my coding,i found the coding for bitmap button in the dialog. it shows as //mainfrm.h public: CMainFrame(); CSysWindow m_SysWnd; CBitmapButton bmSCopy; //mainfrm.cpp m_SysWnd.SetBarStyle( m_SysWnd.GetBarStyle()| CBRS_ALIGN_TOP|CBRS_BORDER_TOP | CBRS_FLOAT_MULTI ); bmSCopy.AutoLoad(ID_SCOPY,((CWnd* ) ((CDialogBar *)((CSysWindow*)&m_SysWnd)) ) ); I dont know here where the bitmap image is get loaded in the button. ID_SCOPY is the ID for button. CSyswindow is CDialogBar class. ANd it perfectly working.After executing, the button has the bitmap image what i made the image for that particular button. I dnt know how its get loading.Pls clear me.

    Anu

    H O A D 4 Replies Last reply
    0
    • A Anu_Bala

      Hi, In one of my coding,i found the coding for bitmap button in the dialog. it shows as //mainfrm.h public: CMainFrame(); CSysWindow m_SysWnd; CBitmapButton bmSCopy; //mainfrm.cpp m_SysWnd.SetBarStyle( m_SysWnd.GetBarStyle()| CBRS_ALIGN_TOP|CBRS_BORDER_TOP | CBRS_FLOAT_MULTI ); bmSCopy.AutoLoad(ID_SCOPY,((CWnd* ) ((CDialogBar *)((CSysWindow*)&m_SysWnd)) ) ); I dont know here where the bitmap image is get loaded in the button. ID_SCOPY is the ID for button. CSyswindow is CDialogBar class. ANd it perfectly working.After executing, the button has the bitmap image what i made the image for that particular button. I dnt know how its get loading.Pls clear me.

      Anu

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

      For load bitmaps on the a control of CBitmapButton it uses of LoadBitmaps.

      A 1 Reply Last reply
      0
      • H Hamid Taebi

        For load bitmaps on the a control of CBitmapButton it uses of LoadBitmaps.

        A Offline
        A Offline
        Anu_Bala
        wrote on last edited by
        #3

        In that coding, i didnot find Loadbitmaps function anywhere.

        Anu

        1 Reply Last reply
        0
        • A Anu_Bala

          Hi, In one of my coding,i found the coding for bitmap button in the dialog. it shows as //mainfrm.h public: CMainFrame(); CSysWindow m_SysWnd; CBitmapButton bmSCopy; //mainfrm.cpp m_SysWnd.SetBarStyle( m_SysWnd.GetBarStyle()| CBRS_ALIGN_TOP|CBRS_BORDER_TOP | CBRS_FLOAT_MULTI ); bmSCopy.AutoLoad(ID_SCOPY,((CWnd* ) ((CDialogBar *)((CSysWindow*)&m_SysWnd)) ) ); I dont know here where the bitmap image is get loaded in the button. ID_SCOPY is the ID for button. CSyswindow is CDialogBar class. ANd it perfectly working.After executing, the button has the bitmap image what i made the image for that particular button. I dnt know how its get loading.Pls clear me.

          Anu

          O Offline
          O Offline
          only coder
          wrote on last edited by
          #4

          For the button caption “MYIMAGE,” for example, the IDs would be “MYIMAGEU,” “MYIMAGED,” “MYIMAGEF,” and “MYIMAGEX.” You must specify the ID of your bitmaps within double quotes.

          A 1 Reply Last reply
          0
          • A Anu_Bala

            Hi, In one of my coding,i found the coding for bitmap button in the dialog. it shows as //mainfrm.h public: CMainFrame(); CSysWindow m_SysWnd; CBitmapButton bmSCopy; //mainfrm.cpp m_SysWnd.SetBarStyle( m_SysWnd.GetBarStyle()| CBRS_ALIGN_TOP|CBRS_BORDER_TOP | CBRS_FLOAT_MULTI ); bmSCopy.AutoLoad(ID_SCOPY,((CWnd* ) ((CDialogBar *)((CSysWindow*)&m_SysWnd)) ) ); I dont know here where the bitmap image is get loaded in the button. ID_SCOPY is the ID for button. CSyswindow is CDialogBar class. ANd it perfectly working.After executing, the button has the bitmap image what i made the image for that particular button. I dnt know how its get loading.Pls clear me.

            Anu

            A Offline
            A Offline
            Amar Sutar
            wrote on last edited by
            #5

            See this link http://msdn2.microsoft.com/en-us/library/a3y45xs0(VS.80).aspx and read To include a bitmap-button control in a dialog box Amar:)

            1 Reply Last reply
            0
            • O only coder

              For the button caption “MYIMAGE,” for example, the IDs would be “MYIMAGEU,” “MYIMAGED,” “MYIMAGEF,” and “MYIMAGEX.” You must specify the ID of your bitmaps within double quotes.

              A Offline
              A Offline
              Anu_Bala
              wrote on last edited by
              #6

              Yes, I found that. Thank u so much

              Anu

              1 Reply Last reply
              0
              • A Anu_Bala

                Hi, In one of my coding,i found the coding for bitmap button in the dialog. it shows as //mainfrm.h public: CMainFrame(); CSysWindow m_SysWnd; CBitmapButton bmSCopy; //mainfrm.cpp m_SysWnd.SetBarStyle( m_SysWnd.GetBarStyle()| CBRS_ALIGN_TOP|CBRS_BORDER_TOP | CBRS_FLOAT_MULTI ); bmSCopy.AutoLoad(ID_SCOPY,((CWnd* ) ((CDialogBar *)((CSysWindow*)&m_SysWnd)) ) ); I dont know here where the bitmap image is get loaded in the button. ID_SCOPY is the ID for button. CSyswindow is CDialogBar class. ANd it perfectly working.After executing, the button has the bitmap image what i made the image for that particular button. I dnt know how its get loading.Pls clear me.

                Anu

                D Offline
                D Offline
                David Crow
                wrote on last edited by
                #7

                Anu_Bala wrote:

                Pls clear me.

                See here.


                "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

                "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                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