0

如何msflexgrid在 VB6 的某些单元格中打印图片?

4

1 回答 1

0

我认为您必须首先选择网格单元格,可以选择设置单元格图片对齐方式,然后使用LoadPicture(如果您使用磁盘上图片的文件路径)或最好LoadResPicture(如果您在资源中使用图片)加载图片文件)例如

  With MSFlexGrid1
    .Row = 1
    .Col = 1
    .RowSel = 1
    .ColSel = 1
    .CellAlignment = flexAlignCenterCenter
    Set .CellPicture = LoadPicture("C:\My Pictures\Me.bmp")
    ' Alternatively:
    ' Set .CellPicture = LoadResPicture(MY_PROFILE_PIC_ID)
  End With
于 2010-10-04T18:41:09.850 回答