Coder Social home page Coder Social logo

jovibor / listex Goto Github PK

View Code? Open in Web Editor NEW
27.0 5.0 9.0 575 KB

List Control with tooltips, cells editing, colors, sorting, hyperlinks, columns hiding, and a lot more.

License: MIT License

C++ 97.86% C 2.14%
mfc list clist tooltips winapi listex tooltip-text menu hyperlinks clistctrl

listex's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

listex's Issues

Column width =0 delivers an asstertion failure

Hi,

adding a column with width 0 causes an assertion failure in the method:
void CListExHdr::OnDrawItem(CDC* pDC, int iItem, CRect rect, BOOL bIsPressed, BOOL bIsHighlighted)
when the CMemDC memDC(*pDC, rect); is created.
Inserting a test helps :
if(rc.IsRectEmpty())
return;

Also in the CListEx class OnPaint() method when the MemDC is created it might crash.

Thanks
Ralf

when I use SetItemText method, Error is: Debug Assertion Failed!

1.vs2019, I uncomment the code snippet, and run the sample. the result is "Debug Assertion Failed!"
//For classical list.
/*
...
m_pList->SetItemText(0, 1, L"Test item - row:0/column:1....");
...
*/
ๅ›พ็‰‡

  1. use other way:
    int nIndex = m_pList->GetItemCount();
    LV_ITEM lvitemAdd = { 0 };
    lvitemAdd.mask = LVIF_TEXT;
    lvitemAdd.iItem = nIndex;
    lvitemAdd.iSubItem = 0;
    lvitemAdd.pszText = _T("Test item - row:0");;
    if (m_pList->InsertItem(&lvitemAdd) != -1)
    {
    LV_ITEM lvitem = { 0 };
    lvitem.mask = LVIF_TEXT;
    lvitem.iItem = nIndex;
    lvitem.iSubItem = 1;
    lvitem.pszText = _T("Test item - row:1");
    m_pList->SetItem(&lvitem);
    }
    the cell is null.

Multi-select via keyboard incomplete

ListEx allows multiple rows to be selected by holding ctrl (or shift) and left clicking.

The Windows list control supports the same behaviour with ctrl (or shift) + up/down arrow keys. Suggest ListEx could be improved if it also supported keyboard input for multi-selection.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.