Solved

how to make grid list control

Posted on 1998-10-07
7
238 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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now