Solved

how to make grid list control

Posted on 1998-10-07
7
243 Views
Last Modified: 2013-11-20
I want to have a grid List Control, how can I do it?
0
Comment
Question by:michali
  • 3
  • 3
7 Comments
 
LVL 8

Accepted Solution

by:
Answers2000 earned 50 total points
ID: 1323052
Goto
http://www.codeguru.com/listview/index.shtml

See these links (on this page)
Grid lines

Vertical lines for column borders - Zafir Anjum (1998/08/06)
Fix resizing problem in above article - Serge Wautier (1998/08/06)
Drawing horizontal and vertical gridlines - Zafir Anjum (1998/08/06)
List control with single / double separator lines - Zoran M.Todorovic (1998/10/05)


Basic idea is to make the control ownerdraw and paint each item yourself with additional grid lines

0
 

Author Comment

by:michali
ID: 1323053
I can't connect to this specific site, did you manage to connect this server?
0
 

Expert Comment

by:umarama
ID: 1323054
Hi michali.

If you are having VC 5.0 +, try this out.

OnInitDialog of the dlg which contains the listctrl, add the following lines :

DWORD dwStyle =
m_MyLstCtrl.SendMessage(LVM_GETEXTENDEDLISTVIEWSTYLE,0,0);
dwStyle |= LVS_EX_GRIDLINES;
m_MyLstCtrl.SendMessage(LVM_SETEXTENDEDLISTVIEWSTYLE, 0, dwStyle);

In addition to this style, if you are interested, you can try out the following:
dwStyle |= LVS_EX_FULLROWSELECT;
dwStyle |= LVS_EX_TRACKSELECT;
dwStyle |= LVS_EX_HEADERDRAGDROP;
dwStyle |= LVS_EX_SUBITEMIMAGES;

These are features included as member functions in 6.0 but are still available in 5.0 thru the above code.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:michali
ID: 1323055
thank you!
that is exactly what I needed.
0
 

Expert Comment

by:umarama
ID: 1323056
michali,

This is umarama.
Just confirming whether you liked my answer or Answers2000's since you have given him the points.
0
 

Author Comment

by:michali
ID: 1323057
I prefer the answer of umarama.
0
 

Expert Comment

by:umarama
ID: 1323058
michali Or Answers2000
 Do you know how to transfer the points to me ? I had this problem with a couple of other questions too ! I comment in a proposed answer and end up losing the points. PLease enlighten as I am new in this group.

Thanks.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
repeatEnd java challenge 42 85
deburging in oracle form 12 109
Window placement 17 93
Problem to event 3 112
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question