Some code fixes required
-
Hi everyone, I am working on an application and not getting a sfew things. 1. How to change the colour of an individual cell in CListctrl. I want to get a look n feel of the stock market ticker where the colour of the cell changes whenever there is a change in the value of the list box there is a change in the colour of that particular cell. 2. How to get text from a dynamically created edit box. i have used the Create() function for creating the listbox.
-
Hi everyone, I am working on an application and not getting a sfew things. 1. How to change the colour of an individual cell in CListctrl. I want to get a look n feel of the stock market ticker where the colour of the cell changes whenever there is a change in the value of the list box there is a change in the colour of that particular cell. 2. How to get text from a dynamically created edit box. i have used the Create() function for creating the listbox.
chaitannya_m wrote:
1. How to change the colour of an individual cell in CListctrl. I want to get a look n feel of the stock market ticker where the colour of the cell changes whenever there is a change in the value of the list box there is a change in the colour of that particular cell.
It's already been done here[^]
chaitannya_m wrote:
2. How to get text from a dynamically created edit box.
You would be having the id of the control when creating it. Use GetDlgItemText. virtual BOOL Create( DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID );
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
Hi everyone, I am working on an application and not getting a sfew things. 1. How to change the colour of an individual cell in CListctrl. I want to get a look n feel of the stock market ticker where the colour of the cell changes whenever there is a change in the value of the list box there is a change in the colour of that particular cell. 2. How to get text from a dynamically created edit box. i have used the Create() function for creating the listbox.
Either this article http://www.codeproject.com/listctrl/listctrldemo.asp[^] or this one http://www.codeproject.com/listctrl/xlistctrl.asp[^] might help you. And for the dynamic editbox, you specified an ID for that when created. use that ID and
GetDlgItem(ID)->GetWindowText();
// "Life is very short and is very fragile also." Yanni
while (I'm_alive)
{
cout<<"I love programming.";
} -
Hi everyone, I am working on an application and not getting a sfew things. 1. How to change the colour of an individual cell in CListctrl. I want to get a look n feel of the stock market ticker where the colour of the cell changes whenever there is a change in the value of the list box there is a change in the colour of that particular cell. 2. How to get text from a dynamically created edit box. i have used the Create() function for creating the listbox.
Do you want to get text of listctrl or editbox?
WhiteSky
-
Do you want to get text of listctrl or editbox?
WhiteSky
Do you want to get text of listctrl or editbox? -> Actually the edit box is in the list control.. so i guess i should have mentioned that earlier. Also i have tried XlistCtrl , it too complicated. Anyone can help me out there