Results 1 to 3 of 3

Thread: DlgDirList

  1. #1
    fntzlnd
    Guest

    DlgDirList

    Does any one have an example of code on how to use DlgDirList?

    Many thanks.
    Greg

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Assuming I have a dialog hDlg with the list box ID_DIRLB:
    Code:
    if(!DlgDirList(hDlg, TEXT("c:\\windows\\*.exe"), ID_DIRLB, 0, DDL_READWRITE | DDL_READONLY))
    { // handle error
    }
    This will fill the list box ID_DIRLB with all exe files that are readonly or readwrite from the windows directory. In reality, you should use the API to retrieve the windows path.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    fntzlnd
    Guest

    Thank you.

    Thank you Corned Bee, I will try this as soon as I can.

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