473,396 Members | 1,767 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Implementing Drag-And-Drop in c/c++

Hi,

Can anyone suggests me how to implement Drag-And-Drop property using C/C++.

Thanks in advance.
Nov 29 '07 #1
3 1808
arunmib
104 100+
What do you want to know? what have you done? Some thing like this can act as a guideline,

1) Register the mouse1 press event.
2) Record the properties of the item selected.
3) Register the mouse1 release event.
4) Get the location(of the destination), properties etc..etc.. that you may need to do while moving.
5) Create a copy of the item in the new location and if it's successful remove the old item.
6) If the move failed, then remove the created copy in destination and it's associated properties and clear the recorded information

If you want more details, as all experts here say "tell what you have done till now and where you are stuck and the experts(certainly not me ;-) ) here will help you" .
Nov 29 '07 #2
weaknessforcats
9,208 Expert Mod 8TB
Is this for Windows?? Then there are API's for this.
Nov 29 '07 #3
Studlyami
464 Expert 256MB
Here is a video from msdn that tells you how to implement drag and drop in MFC.
Nov 29 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: MKoleoso | last post by:
Problem: C#- Unable to create instance of a class implementing from an interface I have: namespace someNamespace { public __gc class SomeClass1 { }
11
by: kiran | last post by:
I am trying to implement a rubber band/image selection script. For that I need to remove the default drag behaviour on an image. I am able to do this in IE but not Netscape. Does any one have a...
1
by: kiran | last post by:
I am trying to implement a rubber band/image selection script. For that I need to remove the default drag behaviour on an image. I am able to do this in IE but not Netscape. Does any one have a...
2
by: Daniel | last post by:
Hello, in my application, i need to drag files from the windows explorer to the application, but also the other way round. To drag files from the explorer works fine (using...
2
by: CB | last post by:
Is it possible to drag the browser itself from inside the document window? What I want to do is open a browser window without a title bar, but be able to drag it around the screen as if I was...
1
by: commanderjason | last post by:
Im trying to drag links into my c# windows app. my code is pretty straitforward for this test private void Form1_DragEnter(object sender, DragEventArgs e) { e.Effect = DragDropEffects.All;...
1
by: Marko Vuksanovic | last post by:
I used the following code for implementing a file upload progress indicator, using UpdateProgress Panel, though I have a problem that FileUpload.Has File always returns false. Any suggestions what...
1
by: Tuanisviet | last post by:
Hey folks. I've built a table in a Java Applet that has several rows in it. I know you can click, hold down the button, then drag all the way through the table to select them all, BUT on release of...
0
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
Being you can drag webparts from zone to zone, is there a way to control drag speed while dragging/scrolling up the page? I have a list of webparts that may go beyond the page. If a user wants...
1
Ali Rizwan
by: Ali Rizwan | last post by:
Hi all, I want to drag my form which has no title bar but has a label. I want to drag my form by the help of that label. Thanx
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.