[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

using grid controls

Posted on 1998-10-28
2
Medium Priority
?
252 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 100 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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

650 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