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 load picture to FlexGrid cell in MFC?

How to load picture to FlexGrid cell in MFC?

Scheduled Pinned Locked Moved C / C++ / MFC
c++questiontutorial
4 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
    jahfer
    wrote on last edited by
    #1

    Hello, I am working with MS FlexGrid and VC++ 6.0(MFC). I need to load a picture(bmp) to the cell of the flexgrid. How can I do this? TIA, Regards, Jahfer V P

    2 1 Reply Last reply
    0
    • J jahfer

      Hello, I am working with MS FlexGrid and VC++ 6.0(MFC). I need to load a picture(bmp) to the cell of the flexgrid. How can I do this? TIA, Regards, Jahfer V P

      2 Offline
      2 Offline
      224917
      wrote on last edited by
      #2

      Use CMSFlexGrid::SetRefCellPicture(). A sample here[^]


      suhredayan
      There is no spoon.

      J 1 Reply Last reply
      0
      • 2 224917

        Use CMSFlexGrid::SetRefCellPicture(). A sample here[^]


        suhredayan
        There is no spoon.

        J Offline
        J Offline
        jahfer
        wrote on last edited by
        #3

        Dear Suhredayan, Thank You for your great help. The sample you pointed out helped me to reach the destination. Here is the way that I implemented it. It is very simple. /******************************/ CPictureHolder picHdr; picHdr.CreateFromBitmap(IDB_BITMAP1); m_FlexGrid.SetCol(2); m_FlexGrid.SetRow(1); m_FlexGrid.SetRefCellPicture(picHdr.GetPictureDispatch()); /******************************/ Thanks & Regards, Jahfer V P

        2 1 Reply Last reply
        0
        • J jahfer

          Dear Suhredayan, Thank You for your great help. The sample you pointed out helped me to reach the destination. Here is the way that I implemented it. It is very simple. /******************************/ CPictureHolder picHdr; picHdr.CreateFromBitmap(IDB_BITMAP1); m_FlexGrid.SetCol(2); m_FlexGrid.SetRow(1); m_FlexGrid.SetRefCellPicture(picHdr.GetPictureDispatch()); /******************************/ Thanks & Regards, Jahfer V P

          2 Offline
          2 Offline
          224917
          wrote on last edited by
          #4

          any time ;)


          suhredayan
          There is no spoon.

          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