Spread 8.0 Documentation
Example
Support Options

Glossary Item Box

Example


The following example creates a scroll bar and sets the color and size.

C++

// Set sheet number

spr->SetSheet(1);

// Set scroll bar color

spr->SetScrollBarColor(RGB(255, 255,0), RGB(255,255,0));

// Set scroll bar size

spr->SetScrollBarSize(40, 40);

// This example gets the scroll bar color

COLORREF vColor, hColor;

spr->GetScrollBarColor(&vColor, &hColor);

char buf[30];

itoa((int)GetGValue(&vColor), buf, 10);

AfxMessageBox(buf);

Copyright © GrapeCity, inc. All rights reserved.