Go4Expert

Go4Expert (http://www.go4expert.com/)
-   MFC (http://www.go4expert.com/forums/mfc/)
-   -   Setting strings row wise (http://www.go4expert.com/forums/setting-strings-row-wise-t18696/)

sujan.dasmahapatra 26Jul2009 01:03

Setting strings row wise
 
Dear Friends
I am wirting an application where I need to display texts on the client window row wise on a new line.
So I have created a class MyEdit derived from CListBox and trying to write text onto it.
I am creating the object olf MyEdit like this .

///////////////////////////////////////////////////////////////////////////////////////////////////////////
class MyEdit : public CListBox
{
};
///////////////////////////////////////////////////////////////////////////////////////////////////////////
myedit = new MyEdit();
myedit->Create(ES_MULTILINE | WS_CHILD | LBS_USETABSTOPS | WS_VISIBLE | WS_TABSTOP | WS_BORDER, rect
/* CRect(0,0,1000,1000)*/,this, 1);
myedit->AddString("Line no 1\t");

/////////////////////////////////////////////////////////////////////////////////////////////////////////

But in the first place it's not writing texts onto the clientwindow (or ListBox) can anyone tell me whats the problem...?????
After writing I want to write a second texts in the 2nd line..
Please hel p me someone...


All times are GMT +5.5. The time now is 10:43.