Click to See Complete Forum and Search --> : Lb_insertstring


MasterDucky
November 4th, 2009, 02:13 PM
Is it possible to do something like this?
I would like to insert in a listbox on the same line with a string litteral + a char array.


char Lines[256];
SendMessage(hWin_1, LB_INSERTSTRING, -1, (LPARAM) ("You > " + Lines));

VictorN
November 4th, 2009, 02:32 PM
char Lines[256];
...
char Item[300];
strcat(Item, ("You > ");
strcat(Item, Lines);
SendMessage(hWin_1, LB_INSERTSTRING, -1, (LPARAM) Item);

MasterDucky
November 4th, 2009, 04:43 PM
Thank you Victor! ;)