Spread 8.0 Documentation
Example
Support Options

Glossary Item Box

Example


The following example shows the sheet number in a message box.

C++

afx_msg LONG OnTabScrolling(UINT wParam, LONG lParam);

ON_MESSAGE(SSM_TABSCROLLING, OnTabScrolling)

afx_msg LONG CMfcSpread7Dlg::OnTabScrolling(UINT wParam, LONG lParam)

{

short o, n;

o = LOWORD(lParam);

n = HIWORD(lParam);

char buf[10];

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

AfxMessageBox(buf);

return 0;

}

Copyright © GrapeCity, inc. All rights reserved.