Results 1 to 5 of 5

Thread: common dialog controls.dll

  1. #1

    Thread Starter
    Hyperactive Member wasiq's Avatar
    Join Date
    Jan 2000
    Location
    Karachi, Sindh, Pakistan
    Posts
    274
    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?

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3
    Guest
    Some controls, however, require you to register the class first. (using RegisterClassEx)

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Send the LVM_INSERTITEM message. This link explains all the necessary messages/types: http://msdn.microsoft.com/library/de...w/ListView.htm
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5

    Thread Starter
    Hyperactive Member wasiq's Avatar
    Join Date
    Jan 2000
    Location
    Karachi, Sindh, Pakistan
    Posts
    274
    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width