Click here to Skip to main content
15,949,686 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Custom Draw in CListCtrl - how to change background of icons? Pin
Ryan Binns30-Jun-03 4:12
Ryan Binns30-Jun-03 4:12 
GeneralRe: Custom Draw in CListCtrl - how to change background of icons? Pin
Dominik Reichl30-Jun-03 6:28
Dominik Reichl30-Jun-03 6:28 
GeneralRe: Custom Draw in CListCtrl - how to change background of icons? Pin
Ryan Binns30-Jun-03 17:14
Ryan Binns30-Jun-03 17:14 
GeneralRe: Custom Draw in CListCtrl - how to change background of icons? Pin
Dominik Reichl1-Jul-03 0:15
Dominik Reichl1-Jul-03 0:15 
AnswerRe: Custom Draw in CListCtrl - how to change background of icons? Pin
basementman30-Jun-03 4:35
basementman30-Jun-03 4:35 
GeneralList Box Pin
Jay Hova30-Jun-03 2:57
Jay Hova30-Jun-03 2:57 
GeneralRe: List Box Pin
Michael P Butler30-Jun-03 3:07
Michael P Butler30-Jun-03 3:07 
QuestionIs GetItemText limited to 256 bytes for CString ? Pin
Wormhole523030-Jun-03 2:51
Wormhole523030-Jun-03 2:51 
There are two types of function to extract a text in the list item in CListCtrl.

One is
CString GetItemText( int nItem, int nSubItem ),
and the other is
int GetItemText( int nItem, int nSubItem, LPTSTR lpszText, int nLen ).

In case of using the first function,
it looks like it can only extract 256 bytes,
even the text is over 256 bytes.

It is OK for second function.

I don't know why the length is limited for CString.

Any idea to resolve this problem with CString?

Should I use second function?

Thanks.
AnswerRe: Is GetItemText limited to 256 bytes for CSting ? Pin
Trollslayer30-Jun-03 3:40
mentorTrollslayer30-Jun-03 3:40 
GeneralRe: Is GetItemText limited to 256 bytes for CSting ? Pin
Wormhole523030-Jun-03 4:16
Wormhole523030-Jun-03 4:16 
GeneralRe: Is GetItemText limited to 256 bytes for CSting ? Pin
Trollslayer30-Jun-03 5:41
mentorTrollslayer30-Jun-03 5:41 
AnswerRe: Is GetItemText limited to 256 bytes for CSting ? Pin
David Crow30-Jun-03 6:04
David Crow30-Jun-03 6:04 
GeneralRe: Is GetItemText limited to 256 bytes for CSting ? Pin
Wormhole523030-Jun-03 6:19
Wormhole523030-Jun-03 6:19 
GeneralRe: Is GetItemText limited to 256 bytes for CSting ? Pin
David Crow30-Jun-03 6:29
David Crow30-Jun-03 6:29 
GeneralRe: Is GetItemText limited to 256 bytes for CSting ? Pin
Wormhole523030-Jun-03 6:55
Wormhole523030-Jun-03 6:55 
GeneralRe: Is GetItemText limited to 256 bytes for CSting ? Pin
David Crow30-Jun-03 7:22
David Crow30-Jun-03 7:22 
GeneralRe: You are right and I am right too. Pin
Wormhole523030-Jun-03 7:40
Wormhole523030-Jun-03 7:40 
GeneralRe: You are right and I am right too. Pin
David Crow30-Jun-03 7:45
David Crow30-Jun-03 7:45 
GeneralRe: You are right and I am right too. Pin
Wormhole523030-Jun-03 8:03
Wormhole523030-Jun-03 8:03 
QuestionCan I use the DECLARE_DYNAMIC macro for a CList derived class? Pin
Charles Liu30-Jun-03 2:46
Charles Liu30-Jun-03 2:46 
AnswerRe: Can I use the DECLARE_DYNAMIC macro for a CList derived class? Pin
Ryan Binns30-Jun-03 3:24
Ryan Binns30-Jun-03 3:24 
Generalread data from digital camera Pin
includeh1030-Jun-03 2:39
includeh1030-Jun-03 2:39 
GeneralRe: read data from digital camera Pin
basementman30-Jun-03 4:39
basementman30-Jun-03 4:39 
GeneralSerial Comms TimeOut Formula Pin
louis30-Jun-03 2:27
louis30-Jun-03 2:27 
GeneralRe: Serial Comms TimeOut Formula Pin
louis30-Jun-03 3:26
louis30-Jun-03 3:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.