win32 清空ListBox所有内容

Q:clear listbox

hi i am working in VC++ 6 using Win32 App. .............
tell me how to clear the listbox

Re: clear listbox

Send the listbox a LB_RESETCONTENT message.
  Code:
    
SendMessage(handleListbox, LB_RESETCONTENT, 0, 0);

 

reference:

http://forums.codeguru.com/showthread.php?447176-clear-listbox&p=1690227#post1690227

 

posted @ 2014-01-02 10:30  galoishelley  阅读(730)  评论(0编辑  收藏  举报