Advertisement

How Do I Put a Spread Sheet in an MFC app?

Started by June 04, 2001 01:26 PM
1 comment, last by atreyu 23 years, 8 months ago
(Sorry about the double post. I got an error the first time and didn't think the post went through) I need to put an Excel like table into an MFC app I'm working on. Does anyone know how to do this? The MFC classes don't seem to support it. I tried using CMSFlexGrid (an ActiveX control) but It wouldn't appear in my main window (dialog box). It's driving me nuts. If I create another dialog box in my program and place the grid control in that, it will show up when I run DoModal(). I just can't make it appear in my main window (the only place I need it). I'm using the MFC appwizard and I originally didn't add ActiveX support when creating the project. If that's the reason, can anyone tell me how to add activex support now that the project is created? I can't believe how much trouble this is giving me. Thanks, --Ben Edited by - atreyu on June 4, 2001 2:29:40 PM
You did the ''project->add to project->component->MS flexgid''?

Did you make an SDI/MDI or dialog project?
I have a flex grid on a form based SDI, and it worked without issue...

Magmai Kai Holmlor
- The disgruntled & disillusioned
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
Advertisement
Yeah, I added the component. Then went to my dialog box, right clicked, and ran "Insert ActiveX Control".

The program is a dialog project. The reason I think something is really messed up is that I can insert the control into any dialog box I want (Except my main dialog box, where I need it) and it is visible after a call to DoModal(). If I place it in the main dialog box it simply doesn''t show up.

The only (apparent) difference between the boxes is that the main dialog box was the default one that appwizard added to the project (when I created it). The others were added later.

I think this is one of those really nasty problems you hit every so often. I''m pretty sure I will throw away 10hrs on this one. I just thought I''d try here first. I even tried starting a new app, and copying my project item by item to it, and finally pasting in the flex grid, and I still had the same problem.

d e e p s k y . s 5 . c o m



"If builders made buildings the way programmers write
programs, then the first woodpecker to come along would
destroy civilization." -Weinberg''s Law

This topic is closed to new replies.

Advertisement