Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Offer Har
|
Nov 9, 2008 - 8:24 AM
|
I have a dialog with a scroll-bar of type CExtZoomScrollBar . I initialize it in OnInitDialog like this:
BOOL CDataDlg::OnInitDialog()
{
CExtResizableDialog::OnInitDialog();
ShowSizeGrip(FALSE);
m_wndZoomer.m_eSO = CExtScrollBar::__ESO_BOTTOM;
SCROLLINFO si;
si.fMask = SIF_ALL;
si.nMin = 0;
si.nMax = 100;
si.nPage = 1;
si.nPos = 50;
si.nTrackPos = 50;
VERIFY( m_wndZoomer.SetScrollInfo( &si ) );
m_wndZoomer.m_bEnabledToolTips = true;
m_wndZoomer.m_strTipTextForThumbButton = _T("Zoom Slider");
m_wndZoomer.m_strTipTextForUpButton = _T("Zoom Out");
m_wndZoomer.m_strTipTextForDownButton = _T("Zoom In");
SubclassChildControls();
return TRUE;
} But something is wrong: 1) Even though I said the that I want the position to be in the middle (50) it starts in the left side. 2) in the OnHScroll call, when I look into SCROLLINFO I see that all the values atr zero (min=max=pos=0) Did I miss anything? Is there something wrong in 2,84?
|
|
Technical Support
|
Nov 10, 2008 - 11:44 AM
|
|
|
Offer Har
|
Nov 17, 2008 - 11:17 AM
|
Thanks very much for your help - found my problem.
|
|