Thread: drives

  1. #1
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    drives

    When using a listbox, I am list all drives. I want to use LBN_DBLCLK(or whatever the dbl clk for LB is) to switch drives. I try it but it won't show the DDL_DIRECTORY when u do a double click.
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: [email protected]

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  2. #2
    Normal vector Carlos's Avatar
    Join Date
    Sep 2001
    Location
    Budapest
    Posts
    463
    To visualize the directory tree/files, you *have* to implement the adequate code, too.

    You're expecting from your compiler to read your minds?

    Well, then wait a little bit, I'd say 100 years (taking in account the current hw-sw boom)

    Following functions might be of use:
    _chdrive, FindFirstFile and FindNextFile.

    It's not the easiest task to accomplish, though...
    What are you working on? Kinda NC-clone?

    Have fun!

  3. #3
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    well..

    Ok, thanks. I will look them up on MSDN Library!
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: [email protected]

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  4. #4
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    Have you looked at the LB_DIR style?
    Or DlgDirList()?
    They fill a listbox with the drives and folders ect.

    Are you using a Combobox or ListView(listbox)? (Treeview would be my choice as it will draw all the lines ect.)
    DDL_DIRECTORY is specific to Comboboxes.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Determine drives attached
    By niqo in forum Windows Programming
    Replies: 2
    Last Post: 10-05-2007, 09:49 AM
  2. USB Drives???
    By khpuce in forum Tech Board
    Replies: 14
    Last Post: 12-12-2003, 09:01 AM
  3. installing hard drives and IDE cables...
    By dbaryl in forum Tech Board
    Replies: 14
    Last Post: 09-02-2002, 10:11 AM
  4. Probs with CD drives
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 03-11-2002, 11:09 AM
  5. floppy drives...
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 39
    Last Post: 11-16-2001, 06:49 PM