CoderSource.net
Search
CListCtrl objet
Started by agenore at 05-18-2006 1:31 AM. Topic has 2 replies.

Print Search « Previous Thread Next Thread »
   05-18-2006, 1:31 AM
agenore is not online. Last active: 7/24/2006 9:38:58 AM agenore



Top 10 Posts
Joined on 03-21-2006
Parma
Posts 26
CListCtrl objet
Hi,
I've made a little application with a control list. The programm works how I want but I've had two little problem. The controll list has 3 coloums, when I select a row only the first coloum changes color end became active.
1) How Can I do to show all the row selected?
2) How can I do to show a grid into the control list?

Thanks.

   Report 
   05-20-2006, 1:27 PM
theDentist is not online. Last active: 1/5/2008 4:01:46 PM theDentist

Top 10 Posts
Joined on 12-05-2005
Posts 42
Re: CListCtrl objet

Hi,

I had the exact same problem and posted on this forum. Use the extended style function as follows:
  
    DWORD SetExtendedStyle(DWORD dwNewStyle);

for example,

   myListControl.SetExtendedStyle(<the parameter you want>);

the following are the parameters you want:


LVS_EX_FULLROWSELECT   for full row selection with mouse
LVS_EX_GRIDLINES  for a grid.

Regards

Peter


   Report 
   05-21-2006, 1:32 AM
agenore is not online. Last active: 7/24/2006 9:38:58 AM agenore



Top 10 Posts
Joined on 03-21-2006
Parma
Posts 26
Re: CListCtrl objet
It works fine.
Thanks!

   Report 
Codersource.Net » Programming » MFC Programming » CListCtrl objet

MENU
Home
MFC 
C++
.Net
WIN32
Programming
Forum
My Articles
Welcome to Codersource.Net Login | Register | Faq  

Google
 

NOTES:


Thanks for visiting our CoderSource.net. This site will be improved with more articles. Interested visitors can also submit their articles through the Submit Article link.Your article will also be published after due consideration by the editor. 

© Copyright 2003. All rights on content reserved by CoderSource.net. Contact    About Us