Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ActiveX Control Creation

Posted on 1997-05-10
2
Medium Priority
?
478 Views
Last Modified: 2013-11-20
Here's what I want to do,
   MSFlexGrid 5.0 has 90% of the features i would like it to
   have.
   I want to implement a new control with the last 10%
   based on the MSFlexGrid control.

Specifics:
   Im using Visual C++ 5.0's ActiveX control creation.
   Im not subclassing the control.

I would like to Create the msflexgrid control in my controls "OnCreate". How is this done codewise?

Thanks in advance
0
Comment
Question by:mtoft
[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

Author Comment

by:mtoft
ID: 1301430
Adjusted points to 250
0
 

Accepted Solution

by:
ehret earned 500 total points
ID: 1301431
I did a similar thing with a different grid.
In the create of your control, create a CRect sturcture filled with the size that you would like your grid to be (probobly you want it 100%). Use the LPCREATESTRUCT parameters x,y,cx and cy to determine the size of your control. Then, create a pointer to your msflext (say, pFlex) and then call pFlex->CreateControl(..). Note that you may need to include the license key of MSflex for it to work properly. Use the rect you created using the info  in LPCREATE struct for the rect parameter of Create Control. To handle resize, you may want to override the function OnSetObjectRects, determine the new size of your control, and resize your pFlex using MoveWindow.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

604 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