Click here to Skip to main content
15,885,365 members
Articles / Desktop Programming / MFC

A CListBox with automatic HSCROLL maintenance

Rate me:
Please Sign up or sign in to vote.
4.50/5 (8 votes)
27 Jun 20013 min read 158.9K   1.7K   41  
Taking the pain out of adding a horizontal scrollbar to a listbox.
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by hscroll.rc
//
#define IDM_ABOUTBOX                    0x0010
#define IDD_ABOUTBOX                    100
#define IDS_ABOUTBOX                    101
#define IDD_HSCROLL_DIALOG              102
#define IDR_MAINFRAME                   128
#define IDC_LIST                        1000
#define IDC_DATA                        1001
#define IDC_ADD                         1002
#define IDC_DELETE                      1003
#define IDC_INSERT                      1004

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        129
#define _APS_NEXT_COMMAND_VALUE         32771
#define _APS_NEXT_CONTROL_VALUE         1005
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Retired
United States United States
PhD, Computer Science, Carnegie Mellon University, 1975
Certificate in Forensic Science and the Law, Duquesne University, 2008

Co-Author, [i]Win32 Programming[/i]

Comments and Discussions