SetScrollbars(1, 1, 0, ClientHeight * 2); // always on
SetScrollbars(1, 1, 0, ClientHeight * 2); // always on
GetClientSize(&ClientWidth, &ClientHeight);
m_Cell -> Layout(ClientWidth);
if (ClientHeight < m_Cell -> GetHeight()) {
GetClientSize(&ClientWidth, &ClientHeight);
m_Cell -> Layout(ClientWidth);
if (ClientHeight < m_Cell -> GetHeight()) {
}
else { /* we fit into window, no need for scrollbars */
SetScrollbars(1, 1, 0, 0); // disable...
}
else { /* we fit into window, no need for scrollbars */
SetScrollbars(1, 1, 0, 0); // disable...