Solved

How can I create or drag drop a Label in CView

Posted on 2002-03-14
2
211 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Named range not carried over 10 71
WinWaitActive parameters 12 31
dog bark java program 15 132
How to convert MFC::CString to UTF8 wchar_t* 10 461
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

751 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