Thread: Simple Drag-and-Drop in Windows with C

  1. #1
    A source of questions... Benji Wiebe's Avatar
    Join Date
    Mar 2011
    Location
    Durham, Kansas
    Posts
    69

    Simple Drag-and-Drop in Windows with C

    How can I do simple drop handling in Windows? I only need to handle dropped text and files. It needs to be in C.
    Any help will be appreciated.
    Ever notice how fast Windows runs?
    Neither did I.
    Which is why I switched to Linux.

  2. #2

  3. #3
    A source of questions... Benji Wiebe's Avatar
    Join Date
    Mar 2011
    Location
    Durham, Kansas
    Posts
    69
    Quote Originally Posted by Codeplug View Post
    I found this too, but I was a little hesitant to use it. I guess I will try that. One thing... Whats the code required to just handle files dropped on the program window from windows explorer (C++)?
    Ever notice how fast Windows runs?
    Neither did I.
    Which is why I switched to Linux.

  4. #4
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    639
    WM_DROPFILES message (Windows). Everything you need for file drops is linked to in the main body.

  5. #5
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    >> Whats the code required to just handle files dropped on the program window ...
    The required code is in that C library. adeyblue's link explains how the Win32 API's used in that library work. If you were to do it in C++, the code would be slightly simplified since COM programming is more straight forward in C++.

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Drag and drop windows control tutorial
    By pattisahusiwa in forum C++ Programming
    Replies: 1
    Last Post: 12-12-2011, 01:22 PM
  2. Drag & Drop using TreeView
    By Devils Child in forum C# Programming
    Replies: 1
    Last Post: 03-24-2009, 07:02 AM
  3. windows programming using drag and drop
    By abhijeetnayak in forum Windows Programming
    Replies: 2
    Last Post: 08-16-2006, 08:35 AM
  4. Drag and drop
    By geek@02 in forum Windows Programming
    Replies: 2
    Last Post: 09-29-2005, 05:16 PM
  5. drag and drop
    By depsypher in forum Windows Programming
    Replies: 2
    Last Post: 01-05-2002, 10:02 PM