Does MFC have built-in grid control?

First I want: the ability to display a grid with multiple columns, each cell has its own rendering callback. Thus, you can use such a control to display your inventory in the game or something like behavior in Google Chrome, where it displays a grid of popular pages that you visit.

I played with CListCtrl, and although I can get personalized rendering for each element, I cannot get it to work with columns - say, 3 elements per row. The control has methods associated with the column, but I think it is specifically for the built-in function in which the various attributes of the element are displayed automatically in each column ... not to provide general grid control.

So, is there such functionality in MFC? If not, then I wonder, the simplest approach for me is to actually insert each of the rows as an element ... and then the user rendering draws several cells in a row, I can also make a user interface to support clicking on the cells.

But I really want to create a custom control and add it as an element to the list - for example, in Flex - so I / O, etc. automatically processed.

Any advice / information is appreciated ...

+5
source share
4 answers

, , this. MFC, CWnd, .

+2

YOUR_LIST_CONTROL.SetExtendedStyle(LVS_EX_FULLROWSELECT | LVS_EX_INFOTIP | LVS_EX_GRIDLINES);

,

+1

All Articles