Download MetaTrader 5
To add comments, please log in or register
Download MetaTrader 5 mobile version and trade from anywhere in the world!
JulioCesar1
38
JulioCesar1 2016.08.24 16:50 

Hello,

I implemented the class CListView in my code to make a multiple line editable list (for the user to write in). Everything works well except one thing: only 1 line is selectable at a time with the mouse. Any idea how I can make it so that dragging left-click over the list, it selects all lines?


How the list shows: 

 

This is the code that creates the list, inserted in a class with a dialog window:


bool COrderPanel::CreateListReason(void)
{
   int x1=INDENT_LEFT;
   int y1=INDENT_TOP+(5*SPACE);
   int x2=x1+(3*CTRL_WIDTH);
   int y2=y1+(3*CTRL_HEIGHT);
//create
   if(!EditReason.Create(m_chart_id,m_name+"ListReason",m_subwin,x1,y1,x2,y2))
      return(false);
   if(!Add(EditReason))
      return(false);  
   return(true);
}

 

Thanks! 

/
To add comments, please log in or register