Solved

push buttons in a CListView ?

Posted on 1998-02-27
4
328 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

Independent Software Vendors: 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

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…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

691 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