All pastes #965761 Raw Edit

Mine

public text v1 · immutable
·published 2008-04-01 05:19 UTC
rendered paste body
DWORD Index = SendMessage ( hList, LB_GETCURSEL, 0, 0 );
DWORD TextLength = SendMessage ( hList, LB_GETTEXTLEN, (WPARAM) Index, 0 );
TCHAR *Text = malloc ( TextLength + 1 );
SendMessage ( hList, LB_GETTEXT, (WPARAM) Index, (LPARAM) Text );
SetWindowText(hWnd, Text);
free ( Text );