Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

how to make grid list control

Posted on 1998-10-07
7
Medium Priority
?
251 Views
Last Modified: 2013-11-20
I want to have a grid List Control, how can I do it?
0
Comment
Question by:michali
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 8

Accepted Solution

by:
Answers2000 earned 150 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
Industry Leaders: 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

704 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