Spread 8.0 Documentation
Example
Support Options

Glossary Item Box

Example


The following example sets the color and size of the scroll bar.

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);

// Get the scroll bar size

short vw, hh;

char buf[20], buf1[20];

char str[200];

spr->GetScrollBarSize(&vw, &hh);

itoa(vw, (LPSTR)buf, 10);

itoa(hh, (LPSTR)buf1, 10);

strcpy(str, "The width of the vertical scroll bar is ") ; strcat(str, buf);

strcat(str, " and the height of the horizontal scrollbar is ");

strcat(str, buf1);

AfxMessageBox(str);

Copyright © GrapeCity, inc. All rights reserved.