469,326 Members | 1,530 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,326 developers. It's quick & easy.

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 4730

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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.