Click here to Skip to main content
15,895,809 members
Articles / Desktop Programming / MFC

CGridCtrl with Merge Cell and Freeze Row/Col Capability

Rate me:
Please Sign up or sign in to vote.
4.83/5 (29 votes)
18 Aug 2010CPOL7 min read 89K   5.7K   59  
Add XL style merge cell as well as Freeze Pane (freeze row/col) functionality to Chris Maunder's CGridCtrl.
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by GridCtrlTest.rc
//
#define IDM_ABOUTBOX                    0x0010
#define IDD_ABOUTBOX                    100
#define IDS_ABOUTBOX                    101
#define IDD_GRIDCTRLTEST_DIALOG         102
#define IDR_MAINFRAME                   128
#define IDC_LIST1                       1000
#define IDC_BUTTON_MERGE                1002
#define IDC_BUTTON2                     1003
#define IDC_BUTTON_FREEZE               1003
#define IDC_EDIT_ROWCOUNT               1004
#define IDC_EDIT_COLCOUNT               1005
#define IDC_EDIT_MERGERANGE1            1006
#define IDC_EDIT_FREEZEDROWS            1007
#define IDC_EDIT_FREEZEDCOLS            1008
#define IDC_EDIT_MERGERANGE2            1009
#define IDC_EDIT_MERGERANGE3            1010
#define IDC_EDIT_MERGERANGE4            1011
#define IDC_BUTTON_UNMERGE              1012
#define IDC_BUTTON_COLCOUNT             1013
#define IDC_BUTTON3                     1014
#define IDC_BUTTON_ROWCOUNT             1014

// 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         1015
#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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead Kotha Technologies
Bangladesh Bangladesh
If you are not in - you are out !
- Chapter 1

Comments and Discussions