Click to See Complete Forum and Search --> : common dialog controls.dll
wasiq
Sep 8th, 2000, 05:43 AM
Can anyone tell me where can I find information regarding the comdlg32.dll. I want to create listviews and treeviews using api calls. Anyone knows how to do that?
parksie
Sep 8th, 2000, 02:34 PM
You don't need to use the comdlg32.dll library directly. Simply use the CreateWindowEx API function, using class types of:
SysTreeView32
SysHeader32
SysListView32
SysTabControl32
and a few more, documented in the Platform SDK.
Some controls, however, require you to register the class first. (using RegisterClassEx)
parksie
Sep 9th, 2000, 11:08 AM
Send the LVM_INSERTITEM message. This link explains all the necessary messages/types: http://msdn.microsoft.com/library/default.asp?URL=/library/psdk/shellcc/CommCtls/ListView/ListView.htm
wasiq
Sep 9th, 2000, 02:16 PM
I already tried that, the item is actually added. But I dont know where to set the item text from, because there is no string variable in the listview item details type. Anyone tried this before?
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.