Share via

Create a Table experience from Win32 API

Harshithraj1871 1,756 Reputation points
2022-09-26T11:54:59.63+00:00

Hi,

I was trying to build a table-like experience from Win32 API, I came across ListView which helps us to create a table-like experience and gives functionality like column headers, scrolling, resizeable columns, etc. But I wanted a complex table consisting of sub-columns[ EX: Column "RESULT", Sub column "PASS", sub-column "FAIL"], rearrangeable columns[By dragging], and rearrangeable rows. I was not able to get these experiences through ListView. It Would be very helpful if you could point me to the right control type or documentation to achieve these through win32 API.

Developer technologies | C++
Developer technologies | C++

A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.

0 comments No comments

Answer accepted by question author

Guido Franzke 2,191 Reputation points
2022-09-26T12:48:58.837+00:00

Hello,
ListView will not help you with your requirement. You must draw and control it on your own.
Here is an example for a Win32 table: Win32-SDK-Data-Grid-View-Made-Easy
But I don't think there are sub-columns.
There are many grid controls in the net.
Regards, Guido

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.