What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » ScrollBarControl

ScrollBarControl
Author: Message:
Patchou
Messenger Plus! Creator
*****

Avatar

Posts: 8607
Reputation: 201
43 / Male / Flag
Joined: Apr 2002
RE: ScrollBarControl
it's usable as every other control with windows messages, hwoever, scrollbars are a pain in the bottom, even in C++ programs, they're just miles from being user friendly. Here's a piece of code from Plus! that may help you.

code:
SCROLLINFO infoScroll; ZeroMemory(&infoScroll, sizeof(infoScroll));
        infoScroll.cbSize = sizeof(SCROLLINFO);
        infoScroll.fMask = SIF_DISABLENOSCROLL|SIF_PAGE|SIF_POS|SIF_RANGE;
        infoScroll.nPage = rcOptionsArea.Height();
        infoScroll.nMax = pOptionsWnd->m_nRealHeight;
        infoScroll.nPos = pOptionsWnd->m_nCurrentScrollPos;
        if(infoScroll.nMax <= (int)infoScroll.nPage)
        {
            ::EnableScrollBar(wndScroll, SB_CTL, ESB_DISABLE_BOTH);
            wndScroll.ShowWindow(SW_HIDE);
        }
        else
        {
            ::EnableScrollBar(wndScroll, SB_CTL, ESB_ENABLE_BOTH);
            wndScroll.ShowWindow(SW_SHOW);
        }

        :: SetScrollInfo(wndScroll, SB_CTL, &infoScroll, TRUE);
[Image: signature2.gif]
11-15-2006 05:12 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
ScrollBarControl - by bigbob85 on 11-14-2006 at 09:57 AM
RE: ScrollBarControl - by matty on 11-14-2006 at 03:31 PM
RE: ScrollBarControl - by Mnjul on 11-14-2006 at 04:12 PM
RE: ScrollBarControl - by matty on 11-14-2006 at 05:39 PM
RE: ScrollBarControl - by markee on 11-15-2006 at 04:47 AM
RE: ScrollBarControl - by Patchou on 11-15-2006 at 05:12 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On