Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

push buttons in a CListView ?

Posted on 1998-02-27
4
Medium Priority
?
343 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

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…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

636 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