Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 660063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:06:54+00:00 2026-05-13T23:06:54+00:00

This sounds funny..just a little experiment. i wanted to simulate a drag drop of

  • 0

This sounds funny..just a little experiment.
i wanted to simulate a drag drop of a file on a Application/Window using Send Message.
Is it possible?

I dont have code for the application but on the executable.

The application is IP Messenger.

What i wanted to do is use “Send To” functionality to send the file to an .exe ,which will
find IPMessenger window and simulate a drag drop thr code.

The user will select the file and right click “send to” to the .exe which will do drag drop from code.

**Note: IP Messenger supports drag-drop operation for files

thx
amit

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T23:06:54+00:00Added an answer on May 13, 2026 at 11:06 pm

    There is the WM_DROPFILES Message. I guess that you could use CreateToolhelp32Snapshot to locate the window that is IP Messenger and then build the DROPFILES structure to send with the WM_DROPFILES message.

    The final link would be to Codeproject, with some help on creating the DROPFILES structure: How to Implement Drag and Drop Between Your Program and Explorer.


    Instead of using CreatToolhelp32Snapshot you could be using FindWindow function. Here you will get the HWND for IP Messenger directly, instead of CTh32S, which will only locate the HANDLE for the process.

    When this is done you create the DROPFILES structure. Read the comments on the CodeProject link in the “Initiating a drag and drop” section for more info of how.

    And finally you send it with sendmessage

    SendMessage(ipMessHWND, WM_DROPFILES, (HDROP)&myDropFiles, 0);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This sounds really stupid, but I was told that you could drag-and-drop visual components
This sounds confusing but isn't. Here is the problem: application is hosted at www.site.com/app
Maybe this sounds a little bit crazy, but I need to come up with
This sounds strange, but I've been using this function for quite a while now
I know the title sounds funny, but I found this snippet somewhere: my MyPackage
this sounds so easy - but I just can't figure out the syntax. I
I am trying to catch HTML as fast as possible. This sounds bit funny,
Ok I know this sounds like a stupid question but I JUST CAN NOT
This sounds like a stupid question but, after uploading a file the file isnt
This sounds dumb, but I can't get it to work. I think i just

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.