Solved

how to make grid list control

Posted on 1998-10-07
7
242 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Decoding 32 bit binary streams 6 49
Turn a spreadsheet into a vba executable. 2 93
Creating Labels and Frequency list style reports in SAS code 9 105
modThree challenge 4 97
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…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

860 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