Announcement

Collapse
No announcement yet.

My Computer info

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • My Computer info

    Hi all,
    With all this stuff about owner-drawn combo boxes and list boxes
    lately on the BBS, I decided to try an owner-drawn combobox with
    directories.(I don't do this for a living like most of y'all -
    it's just a hobby for me; I like to every now and then sit down at
    my computer and try to figure out how this works and that works...)
    So I got everything displaying say for drive c or drive d or whatever
    drive I feed it and then I got to wondering how I would display the contents
    of "My Computer"; you know something like the combobox in a openfile
    dialog box does. I have been poking around in the win32.hlp guide
    and msdn and so far haven't come up with something. Does anyone
    know the api call and\or structure I would use to retrieve this
    so I could display it in the combo box. FindFirstFile and WIN_
    32_DATA are for directories and files, if I understand the help
    guide correctly, that have actual paths to give it.
    Just something else I wanted to "tinker" with that's all.

    Regards,
    Adam

    ------------------

  • #2
    I could be wrong, but my experience with say, Browse Boxes would be that if you sent an invalid path to it then it would default to MY COMPUTER...

    So perhaps just don't send it a path?


    Scott


    ------------------
    Scott
    mailto:[email protected][email protected]</A>
    Scott Turchin
    MCSE, MCP+I
    http://www.tngbbs.com
    ----------------------
    True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

    Comment


    • #3
      Hmmmm, nice thought - but that didn't do it. This is not a regular
      browse box though. Thanks anyway Scott. I think I will poke
      around some more over at msdn and see if I can turn up something
      when I get the chance. It's nice that I can display a single drive's
      content with it though.

      Regards,
      Adam

      ------------------

      Comment


      • #4
        Ok, so poking around some more over at msdn and the win32.hlp guide
        - I think I have stumbled onto the stuff I am after. So I am off
        to play with ShGetMalloc, ShGetSpecialFolderLocation,ShGetPathFromIdList
        and CSIDL's. Should be some interesting stuff. Msdn even had
        a VB example I could download and play around with. So I will see what kind of
        damage I can do!

        Regards,
        Adam

        ------------------

        Comment


        • #5
          Originally posted by Adam Ritchie:
          I am off to play with ShGetMalloc, ShGetSpecialFolderLocation,ShGetPathFromIdList
          and CSIDL's.
          But another guys already played
          Take a look Edwin's BFF on his Web site



          ------------------
          E-MAIL: [email protected]

          Comment


          • #6
            Thanks Semen, I will take a look at that!

            Regards,
            Adam

            ------------------

            Comment


            • #7
              Hey, it looks like someone has already played with this stuff!
              Well, this should keep me out of trouble for sometime to come!

              Regards,
              Adam

              ------------------

              Comment

              Working...
              X