Solved

MSFlexGrid from C++

Posted on 1997-12-09
3
266 Views
Last Modified: 2013-11-20
I am using MSFlexGrid from Visual C++ 5.0.  It is in a child window NOT a dialog.  I have most of it working but I cannot figure out how to get notified of a mouse click.  The OCX overides OnLButtonDown and the others so my overide is ignored (been down that road).  I see in the VB doc that there are a number of events that you can be notified of but I don't see how to do it in C++.  The MSFlexGrid class that was inserted by Visual Studio does not contain any overidables. There is no doc for this and many other controls for C++.  I have been figuring out how to use it by trial and error and reading the VB doc which is of only limited use.  Help!  Does anyone know how to do this?  Is there any doc I don't know about?
0
Comment
Question by:paulnorth
3 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 100 total points
ID: 1311962
What I do usually is to create another project, which uses a dialog box to contain the OCX. I can use ClassWizard to add the event sinks for that dialog box class. Then, I copy the event sinks map and functions to this non-dialog class and just change the class names in the event sink map.
0
 

Expert Comment

by:hakeem042997
ID: 1311963
Simple. Handle the OnClickMsFlexGrid event. From classwizard trap
the event and write a handler it.
0
 

Author Comment

by:paulnorth
ID: 1311964
Sorry, hakeem. You can only do that if the control is in a dialog.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.

831 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