Solved

push buttons in a CListView ?

Posted on 1998-02-27
4
296 Views
Last Modified: 2013-11-20
I have programmed a sdi-application with a CListView in it. On the lower end of the CListView I want to have some push buttons similar like I had programmed a dialogbox with a CListCtrl in it. But I must use a CListView because I want to implement some Drag and Drop operations and this is much more easier then in a dialog-based-application. If I use CFormView I don't know exactly, if I implement a CListCtrl in it, if I have the same easy to implement drag and drop member-functions (OnBeginDrag, OnDragEnter, OnDrop, OnDropLeave) than in a CListView.
0
Comment
Question by:atari
  • 3
4 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 50 total points
ID: 1316637
You can derive a class from CListView and in the new class's OnCreate() create two more buttons. Then also, make sure to catch WM_SIZE and reposition your buttons so that the list control and the buttons are both visible.
0
 
LVL 1

Author Comment

by:atari
ID: 1316638
Do I have then the whole drag and drop operations like in CListView and how must I implement the subclassing, is it something like this, I'm not so familiar with it:

class CMyListView : public CListView;
{
}

Where must I create this class, I have no experience in doing so.
Do you could write a little bit of source code for me ?

Thanks so far.
0
 
LVL 1

Author Comment

by:atari
ID: 1316639
Do I have then the whole drag and drop operations like in CListView and how must I implement the subclassing, is it something like this, I'm not so familiar with it:

class CMyListView : public CListView;
{
}

Where must I create this class, I have no experience in doing so.
Do you could write a little bit of source code for me ?

Thanks so far.
0
 
LVL 1

Author Comment

by:atari
ID: 1316640
Can you add a small answer please, I cannot grade, if you don't answer again.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expand macro to include alternate header placement and naming 5 72
VBA "SendKeys" Syntax for Multiple Keystrokes 7 108
has22 challenge 11 96
Window placement 17 83
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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.

809 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