Solved

using grid controls

Posted on 1998-10-28
2
248 Views
Last Modified: 2008-02-01
I am trying to change all instances of my edit boxes to grid controls. I am having a lot of trouble getting started. If someone who has used this control before(msflexgrid or msdbgrid) could give me a little info on how to get started I would really appreciate it. I really need to know how and where to make calls to the various member functions of the grid class. Every time I try I get undeclared indentifier errors even though I have my ".h" files included.
0
Comment
Question by:bellman
2 Comments
 
LVL 2

Expert Comment

by:jrmcg
ID: 1176404
>> change all instances....
Can you be a little clearer?  Do you have say, 25 edit boxes that you would like to change to a 5X5 grid?

Can you tell me how you are going to implement the grid control?  What exactly do you want to accomplish with it?

What you want to do will decide what kind of grid you want to use.

Let me know and I am sure I can help.

J.R.
0
 

Accepted Solution

by:
azlinda earned 50 total points
ID: 1176405
When you insert a msflexgrid or a msdbgrid to your project, a wrapper class containing all the member functions available for that control will be generated.  So, in your ClassView pane, there will be a class called CMSFlexGrid or CMSDBGrid. I would assume that you place your grid on a dialog box. If so, then you can make calls to the member functions in the same dialog class.   Normally, the msflexgrid.h is inserted in your dialog class for you when you insert the grid into your project.  eg, if your dialog class is called msflexdlg.h, then it will contain #include "msflexgrid.h" at the top. If this #include is not there, then you can type it in manually.  That should be it, you can start trying to use all the member functions provided in the wrapper class now.

I hope that helps...
 
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

730 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