Solved

push buttons in a CListView ?

Posted on 1998-02-27
4
321 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
[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
  • 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

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
Host to IP 7 84
Shell script to login to remote m/c and execute commands 10 80
lucky13 challenge 11 166
only14 challenge 19 89
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.

734 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