Solved

ActiveX Control Creation

Posted on 1997-05-10
2
426 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
2 Comments
 
LVL 2

Author Comment

by:mtoft
ID: 1301430
Adjusted points to 250
0
 

Accepted Solution

by:
ehret earned 250 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Perl Awk Need Help 3 109
ffmpeg - "rtsp://...... Operation not permitted" 4 73
lucky13 challenge 11 120
Unix Command -- Challenging  question 7 86
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

911 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

15 Experts available now in Live!

Get 1:1 Help Now