?
Solved

MFC activeX for C-sharp

Posted on 2004-08-14
2
Medium Priority
?
163 Views
Last Modified: 2013-11-25
Hello

I am making a Csharp app. I am really fed up with the list view .net provides. It doesn't let you owner draw the items. and if you over ride the OnPaint event your stuck drawing the whole ting from scratch. I was think of created an ActiveX control in MFC and use that in my C# forms. I want to create a ListView that has checkboxes, displays yellow when item is selected and has icons. I wonder if activeX would be a good solution for this.

What about mixed C++, What would you recoomend as a good solution?
0
Comment
Question by:auk_ie
[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
2 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 2000 total points
ID: 11803323
This is possible, but this is a lot of work and you need to be very good in COM. I think it is better to use some existing pure .NET control and modify it if necessary. Take a look at this sample:

http://www.codeproject.com/cs/miscctrl/aa_listview.asp
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

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: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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 is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

800 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