VC Excellent Grid Control Cgridctrl

Source: Internet
Author: User

The grid controls are very versatile and need to implement an Excel-like interface in one of my projects, so I've adopted a good Cgridctrl control whose original author is Chris Maunder (the latest version of the MFC Grid control written by the original author can go to http:/ /www.codetools.com/miscctrl/gridctrl.asp lookup) To facilitate the merging and revocation of cells, I have customized several public member functions as follows

Setcellcombine (); Set the merge properties of a cell

Undocellcombine (); Cancel Merge

Setfixedcellcombine (); Merging cells

GETCELLP (); Get the Cell object pointer

Its specific implementation I added//want remove it in the code? And the//added for combine comment statement to indicate that the code in this description is for merging. To facilitate later changes.

Method of Use:

The file name is: gridctr.cpp,gridctr.p,cellrange.h,griddroptarget.cpp,griddroptarget.h

Inplaceedit.cpp,inplaceedit.h, Inplacelist.cpp,inplacelist.h, Memdc.h,titletip.cpp, TitleTip.h copied into your project and then imported. It's OK to modify the corresponding header file.

This article provides sample code that contains all the source programs, and the sample program runs as follows:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.