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