Spread 8.0 Documentation
Example
Support Options

Glossary Item Box

Example


The following example loads a picture from a resource.

C++

void CPictureTestDlg::OnResjpg()

{

SS_CELLTYPE ct;

HINSTANCE h = AfxGetResourceHandle();

// Load resource

HANDLE hndl = spr->LoadResPicture(h, "Tattoo", "Tat", SS_PICTURE_TYPE_JPEG);

spr->SetTypePictureHandle(&ct, VPS_HANDLE, hndl, 0, true);

// Create picture cell type

spr->SetCellType(1, 1, &ct);

// Set column width

SetColWidth(1, 60);

// Set row height

spr->SetRowHeight(1, 140);   

}

Copyright © GrapeCity, inc. All rights reserved.