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 OnTabScrolled(UINT wParam, LONG lParam);

ON_MESSAGE(SSM_TABSCROLLED, OnTabScrolled)

afx_msg LONG CMfcSpread7Dlg::OnTabScrolled(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.