Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

XScrollBar - Scroll bar like Windows Media Player's

, 2 Sep 2008 CPOL
XScrollBar is a scroll bar that may be displayed with optional thumb color, thumb gripper, and channel color
XScrollBar_demo.zip
vs2005
src
app.manifest
res
hans.ico
HorizontalScrollBarChannel.bmp
HorizontalScrollBarLeftArrow.bmp
HorizontalScrollBarRightArrow.bmp
HorizontalScrollBarThumb.bmp
HorizontalScrollBarThumbNoColor.bmp
VerticalScrollBarChannel.bmp
VerticalScrollBarDownArrow.bmp
VerticalScrollBarThumb.bmp
VerticalScrollBarThumbNoColor.bmp
VerticalScrollBarUpArrow.bmp
vs6
Release
XScrollBarTest.exe
XScrollBarTest.dsp
XScrollBarTest.dsw
//Microsoft Developer Studio generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE DISCARDABLE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE DISCARDABLE 
BEGIN
    "#include ""afxres.h""\r\n"
    "\0"
END

3 TEXTINCLUDE DISCARDABLE 
BEGIN
    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
    "#define _AFX_NO_OLE_RESOURCES\r\n"
    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
    "\r\n"
    "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
    "#ifdef _WIN32\r\n"
    "LANGUAGE 9, 1\r\n"
    "#pragma code_page(1252)\r\n"
    "#endif //_WIN32\r\n"
    "#include ""afxres.rc""         // Standard components\r\n"
    "#endif\r\n"
    "#ifdef _VC60\r\n"
    "/////////////////////////////////////////////////////////////////////////////\r\n"
    "//\r\n"
    "// 24\r\n"
    "//\r\n"
    "1                      24      MOVEABLE PURE   ""app.manifest""\r\n"
    "#endif\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDR_MAINFRAME           ICON    DISCARDABLE     "res\\hans.ico"

/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//

IDB_HORIZONTAL_SCROLLBAR_LEFTARROW BITMAP  DISCARDABLE     "res\\HorizontalScrollBarLeftArrow.bmp"
IDB_HORIZONTAL_SCROLLBAR_RIGHTARROW BITMAP  DISCARDABLE     "res\\HorizontalScrollBarRightArrow.bmp"
IDB_HORIZONTAL_SCROLLBAR_CHANNEL BITMAP  DISCARDABLE     "res\\HorizontalScrollBarChannel.bmp"
IDB_HORIZONTAL_SCROLLBAR_THUMB BITMAP  DISCARDABLE     "res\\HorizontalScrollBarThumb.bmp"
IDB_HORIZONTAL_SCROLLBAR_THUMB_NO_COLOR BITMAP  DISCARDABLE     "res\\HorizontalScrollBarThumbNoColor.bmp"
IDB_VERTICAL_SCROLLBAR_UPARROW BITMAP  DISCARDABLE     "res\\VerticalScrollBarUpArrow.bmp"
IDB_VERTICAL_SCROLLBAR_DOWNARROW BITMAP  DISCARDABLE     "res\\VerticalScrollBarDownArrow.bmp"
IDB_VERTICAL_SCROLLBAR_CHANNEL BITMAP  DISCARDABLE     "res\\VerticalScrollBarChannel.bmp"
IDB_VERTICAL_SCROLLBAR_THUMB BITMAP  DISCARDABLE     "res\\VerticalScrollBarThumb.bmp"
IDB_VERTICAL_SCROLLBAR_THUMB_NO_COLOR BITMAP  DISCARDABLE     "res\\VerticalScrollBarThumbNoColor.bmp"

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_XSCROLLBARTEST_DIALOG DIALOGEX 0, 0, 140, 122
STYLE DS_MODALFRAME | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION | 
    WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "XScrollBarTest"
FONT 8, "MS Sans Serif"
BEGIN
    PUSHBUTTON      "Horizontal",IDC_BUTTON_HORZ,35,16,70,20
    PUSHBUTTON      "Vertical",IDC_BUTTON_VERT,35,50,70,20,BS_MULTILINE
    PUSHBUTTON      "Online Help",IDC_ONLINE_HELP,35,84,70,20,BS_MULTILINE
END

IDD_HORIZONTAL DIALOGEX 0, 0, 322, 143
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "Horizontal XScrollBar"
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    LTEXT           "",IDC_SAMPLE_HORZ,10,10,100,123,WS_BORDER
    GROUPBOX        "RGB",IDC_STATIC,120,6,192,74
    CONTROL         "Thumb Color",IDC_THUMB_COLOR_HORZ,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,126,19,56,10
    CONTROL         "Thumb Gripper",IDC_THUMB_GRIPPER_HORZ,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,184,19,63,10
    CONTROL         "Channel Color",IDC_CHANNEL_COLOR_HORZ,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,249,19,60,10
    LTEXT           "R",IDC_STATIC,126,38,8,8
    LTEXT           "",IDC_SCROLL1_RECT_HORZ,135,38,142,8,WS_BORDER
    CTEXT           "",IDC_RED_HORZ,281,37,24,10,SS_SUNKEN
    LTEXT           "G",IDC_STATIC,126,51,8,8
    LTEXT           "",IDC_SCROLL2_RECT_HORZ,135,51,142,8,WS_BORDER
    CTEXT           "",IDC_GREEN_HORZ,281,50,24,10,SS_SUNKEN
    LTEXT           "B",IDC_STATIC,126,64,8,8
    LTEXT           "",IDC_SCROLL3_RECT_HORZ,135,64,142,8,WS_BORDER
    CTEXT           "",IDC_BLUE_HORZ,281,63,24,10,SS_SUNKEN
    GROUPBOX        "Saturation and Luminance",IDC_STATIC,120,89,192,43
    LTEXT           "S",IDC_STATIC,126,103,8,8
    LTEXT           "",IDC_SCROLL4_RECT_HORZ,135,103,142,8,WS_BORDER
    CTEXT           "",IDC_SATURATION_HORZ,281,102,24,10,SS_SUNKEN
    LTEXT           "L",IDC_STATIC,126,116,8,8
    LTEXT           "",IDC_SCROLL5_RECT_HORZ,135,116,142,8,WS_BORDER
    CTEXT           "",IDC_LUMINANCE_HORZ,281,115,24,10,SS_SUNKEN
END

IDD_VERTICAL DIALOGEX 0, 0, 328, 226
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "Vertical XScrollBar"
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    LTEXT           "",IDC_SAMPLE_VERT,10,10,96,207,WS_BORDER
    GROUPBOX        "RGB",IDC_STATIC,116,6,96,210
    CONTROL         "Thumb Color",IDC_THUMB_COLOR_VERT,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,133,19,56,10
    CONTROL         "Thumb Gripper",IDC_THUMB_GRIPPER_VERT,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,132,30,63,10
    CONTROL         "Channel Color",IDC_CHANNEL_COLOR_VERT,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,132,41,60,10
    CTEXT           "R",IDC_STATIC,129,56,8,8
    LTEXT           "",IDC_SCROLL1_RECT_VERT,129,66,8,130,WS_BORDER
    CTEXT           "",IDC_RED_VERT,121,202,24,10,SS_SUNKEN
    CTEXT           "G",IDC_STATIC,157,56,8,8
    LTEXT           "",IDC_SCROLL2_RECT_VERT,157,66,8,130,WS_BORDER
    CTEXT           "",IDC_GREEN_VERT,149,202,24,10,SS_SUNKEN
    CTEXT           "B",IDC_STATIC,185,56,8,8
    LTEXT           "",IDC_SCROLL3_RECT_VERT,185,66,8,130,WS_BORDER
    CTEXT           "",IDC_BLUE_VERT,177,202,24,10,SS_SUNKEN
    GROUPBOX        "Saturation and Luminance",IDC_STATIC,222,6,96,210
    LTEXT           "S",IDC_STATIC,251,56,8,8
    LTEXT           "",IDC_SCROLL4_RECT_VERT,251,66,8,130,WS_BORDER
    CTEXT           "",IDC_SATURATION_VERT,243,202,24,10,SS_SUNKEN
    LTEXT           "L",IDC_STATIC,279,56,8,8
    LTEXT           "",IDC_SCROLL5_RECT_VERT,279,66,8,130,WS_BORDER
    CTEXT           "",IDC_LUMINANCE_VERT,271,202,24,10,SS_SUNKEN
END

IDD_ABOUTBOX DIALOGEX 0, 0, 270, 136
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About XScrollBarTest"
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    ICON            IDR_MAINFRAME,IDC_HANS,11,14,20,20,SS_CENTERIMAGE,
                    WS_EX_TRANSPARENT
    LTEXT           "XScrollBarTest Version 1.2",IDC_STATIC,40,13,140,8
    LTEXT           "Copyright � 2004-2008 Hans Dietrich",IDC_STATIC,40,27,
                    165,8
    LTEXT           "This software is released into the public domain.  You are free to use it in any way you like, except that you may not sell this source code.",
                    IDC_STATIC,40,43,165,24,0,WS_EX_TRANSPARENT
    LTEXT           "This software is provided ""as is"" with no expressed or implied warranty.  I accept no liability for any damage or loss of business that this software may cause. ",
                    IDC_STATIC,40,71,165,34
    LTEXT           "Send email to Hans Dietrich",IDC_ABOUT_EMAIL,90,113,90,
                    8,SS_CENTERIMAGE,WS_EX_TRANSPARENT
    DEFPUSHBUTTON   "OK",IDOK,209,9,50,14,WS_GROUP
END


#ifndef _MAC
/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 1,2,0,0
 PRODUCTVERSION 1,2,0,0
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x4L
 FILETYPE 0x1L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904B0"
        BEGIN
            VALUE "E-mail", "hdietrich@gmail.com\0"
            VALUE "Article", "http://www.codeproject.com\0"
            VALUE "FileDescription", "XScrollBarTest.exe\0"
            VALUE "FileVersion", "1, 2, 0, 0\0"
            VALUE "LegalCopyright", "Copyright � 2004-2008 Hans Dietrich\0"
            VALUE "ProductName", "XScrollBarTest\0"
            VALUE "ProductVersion", "1, 2, 0, 0\0"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 1200
    END
END

#endif    // !_MAC


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO DISCARDABLE 
BEGIN
    IDD_XSCROLLBARTEST_DIALOG, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 133
        TOPMARGIN, 7
        BOTTOMMARGIN, 115
    END

    IDD_HORIZONTAL, DIALOG
    BEGIN
        BOTTOMMARGIN, 135
    END

    IDD_VERTICAL, DIALOG
    BEGIN
        RIGHTMARGIN, 326
    END

    IDD_ABOUTBOX, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 228
        TOPMARGIN, 7
        BOTTOMMARGIN, 48
    END
END
#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_ABOUTBOX            "&About XScrollBarTest..."
    IDS_ONLINE_HELP         "http://www.codeproject.com/KB/miscctrl/XScrollBar.aspx"
    IDS_MAILTO              "mailto:hdietrich@gmail.com?subject=XScrollBar"
END

#endif    // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#define _AFX_NO_SPLITTER_RESOURCES
#define _AFX_NO_OLE_RESOURCES
#define _AFX_NO_TRACKER_RESOURCES
#define _AFX_NO_PROPERTY_RESOURCES

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE 9, 1
#pragma code_page(1252)
#endif //_WIN32
#include "afxres.rc"         // Standard components
#endif
#ifdef _VC60
/////////////////////////////////////////////////////////////////////////////
//
// 24
//
1                      24      MOVEABLE PURE   "app.manifest"
#endif

/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Hans Dietrich
Software Developer (Senior) Hans Dietrich Software
United States United States
I attended St. Michael's College of the University of Toronto, with the intention of becoming a priest. A friend in the University's Computer Science Department got me interested in programming, and I have been hooked ever since.
 
Recently, I have moved to Los Angeles where I am doing consulting and development work.
 
For consulting and custom software development, please see www.hdsoft.org.






| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.141223.1 | Last Updated 2 Sep 2008
Article Copyright 2004 by Hans Dietrich
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid