char str[] is not a legal variable declaration - you need to specify the array size. --Mike-- Ericahist | CP SearchBar v2.0.2 | Homepage | RightClick-Encrypt | 1ClickPicGrabber Kosh reminded me of some of the prima-donna programmers I've worked with. Knew everything but when you asked them a question; never gave you a straight answer. -- Michael P. Butler in the Lounge
use EnumWindows to get the menu handle. menu is a window also, and must be active one in enums. then get its parent, which is window u need. includeh10
Call "LockWindowUpdate" before bulk insertion and "UnlockWindowUpdate" after. m_wndListCtrl.LockWindowUpdate(); /* ... insert your 7000 items now ... */ m_wndListCtrl.UnlockWindowUpdate();
i see , as i digesting into the document. lParam is not only a pointer to NMHDR even more of that. we could change the type of it to proper struct pointer such as LPNMTREEVIEW. thank you. love program