clear the list box
-
hi i am working in VC++ 6 using Win32 App. ............. tell me how to clear the listbox
AbidBhat
Send the
LB_RESETCONTENT
[^] message to the list box window. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
Send the
LB_RESETCONTENT
[^] message to the list box window. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
Thanks: can u tell me how to tranfer the selected item(text) from combobox to editbox....
AbidBhat
int iSel = SendMessage(hCombo, CB_GETCURSEL, 0,0);
if (iSel != -1)
{
SendMessage(hCombo, CB_GETLBTEXT, iSel, (LPARAM) buffer);
SendMessage(hEdit, WM_SETTEXT, 0, (LPARAM) buffer);
}Where buffer is a (properly sized)
TCHAR
array. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
int iSel = SendMessage(hCombo, CB_GETCURSEL, 0,0);
if (iSel != -1)
{
SendMessage(hCombo, CB_GETLBTEXT, iSel, (LPARAM) buffer);
SendMessage(hEdit, WM_SETTEXT, 0, (LPARAM) buffer);
}Where buffer is a (properly sized)
TCHAR
array. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
Hey i am not getting ...... where should i add these lines ......i mean to say on which control's event
AbidBhat
-
bhat wrote:
Thanks Pallani i got it ......it is nice to help me ......thank u once again
Actually is Pallini, anyway... You're welcome. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
bhat wrote:
Thanks Pallani i got it ......it is nice to help me ......thank u once again
Actually is Pallini, anyway... You're welcome. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain ClarkeI think you said where's George and now its on the previous thread. :laugh:
-
I think you said where's George and now its on the previous thread. :laugh:
Yes, he's back! :-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
Yes, he's back! :-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain ClarkeHe's back with two questions. :)