Solved

How can I create or drag drop a Label in CView

Posted on 2002-03-14
2
206 Views
Last Modified: 2013-11-20
Hi,
I am trying to create an editor, which is similar to the VC++
Dialog resource editior.
I need to have drag-drop and resize features similar to the
resource editor.
Although I can drag-drop and resize images in CView, How
do I handle the text. The text needs to be as a single block.
So I am thinking of using label. I believe its not possible
to do drag and drop on a Dialog ( I hope I am right )
Can someone please tell me what should I do ?
0
Comment
Question by:sansky_potov
2 Comments
 

Accepted Solution

by:
sabrog earned 50 total points
ID: 6874545
Take a look at http://codeguru.earthweb.com/controls/resize.shtml

I recently did something simalar to this.  I used the CRectTracker to move and resize comboboxes, lables and list boxes on a dialog.  It worked out very well.  The CRectTracker class pretty much does everything for you as far dragging and resizing.

You can have drag and drop on a dialog but you have to capture the mouse messages on the dialog your dragging from and then send a message to the window that you dragged to, when you are done dragging.

Scott
0
 

Author Comment

by:sansky_potov
ID: 6898606
please suggest somemore idea
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now