Solved

push buttons in a CListView ?

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now