Solved

using grid controls

Posted on 1998-10-28
2
243 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
Comment Utility
>> 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now