472,110 Members | 2,142 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,110 software developers and data experts.

Using MSFlexGrid in VC++ 7.0

PVS
Hi,
I am new to VC++ 7.0.
I want to use MSFlexGrid in my dialog based MFC project in VC++ 7.0 (in VS
..NET IDE).
I added the MSFlexGrid control into my resource editor toolbox and I dragged
and dropped that control onto my dialog.
when I tried to assign a variable from my dialog class to this MSFlexGrid
control, it created a class with .h and .cpp files. The new class is
derived from CWnd. I am trying to change it to derive from CMSFlexGrid.
But I am getting error that "CMSFlexGrid is undeclared".

If I am doing any thing wrong please suggest me the right way.

Please help me in this.

Regards,
PVS
Nov 16 '05 #1
1 4825

This control is getting imported from VB. So all the properties have
been made private in c++ and corresponding get/put methods have been
imlemented in the class that is getting generated automatically when
you try adding a variable to the flex grid control.

ex: to set the current row programatically to 1, in VB, the method used
is

-Object-.row = 1

while the same in c++ can be implemented using the following method.

-Object1-.put_row(1);

this method will be available in the .cpp file that is getting
generated.

Hope this would clear your doubt...

You'll have to explore the cpp file to understand the mapping between
VB and c++ implementations of the methods.

Ramp
--
ramprasad.d
------------------------------------------------------------------------
ramprasad.d's Profile: http://www.hightechtalks.com/m651
View this thread: http://www.hightechtalks.com/t2136784

Jan 4 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by John Petersen | last post: by
reply views Thread by Chris Baker | last post: by
1 post views Thread by Mad Scientist Jr | last post: by
2 posts views Thread by Ben | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.