Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 13th, 2004, 03:59 PM
Registered User
 
Join Date: Aug 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default ActiveX Control Required

I'm working in MFC developing my final project. I've
data in 2D-arrays. I want to display that data on
screen in some control. I need a ActiveX Control as
Microsoft Access uses for displaying query results.
I want solution in Visual C++ (MFC). This
problem is not related to ADO or Data Grid Control.
      Please reply me soon.


 
Old December 31st, 2004, 07:27 PM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to andersen_hc
Default

My immediate answer to that is to use the MSFlexGrid ActiveX control. I have been working on a project with a similar requirement (although I'm currently looking for something a little more advanced right now).

MSFlexGrid does exactly the basics. You create a grid and then begin populating it cell by cell. It only requires that you include the sources ' #include "msflexgrid.h" '.

To include it in your project (and I am assuming you are using Visual C++ 6), simply go to the PROJECT menu, select ADD TO PROJECT and COMPONENTS AND CONTROLS. You will get a file dialogue. Select REGISTERED ACTIVEX CONTROLS and open the MICROSOFT FLEXGRID CONTROL.

Then all you need to do next is to go to your RESOURCEVIEW and add the control onto your dialogue (you will find the button at the bottom of the list of controls in the CONTROLS selection box as a yellow button with some kind of icon of a grid).

Should be all you need. There are plenty of resources online on how to use the MSFLEXGRID control and because it is an ActiveX control, the VB implementation and the C++ implementation are pretty much the same, so you should be able to read and learn from both.

Good luck!

 
Old December 31st, 2004, 07:29 PM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to andersen_hc
Default

ah, i forgot to mention, you'll need to write a little ADO/ADOX connection for this. I did anyways... (why can't I use .NET?!?!?! arg!). Anyways, this is not ideal, but I did not find it too difficult or complex.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Charting ActiveX Control seananderson VB.NET 2002/2003 Basics 0 August 13th, 2007 04:46 AM
How to make an ActiveX control Bajrang General .NET 3 December 8th, 2006 12:36 AM
PropertyList activex control coder_gig79 VB Components 3 October 6th, 2004 10:32 PM
How do I use an ActiveX Control? ArtDecade VB.NET 2002/2003 Basics 5 September 18th, 2004 03:23 AM
Calendar Control ActiveX - Where umagrama Access VBA 0 December 9th, 2003 01:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.