Solved

MSFlexGrid from C++

Posted on 1997-12-09
3
263 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

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
Host to IP 7 77
Whole sheet autoscrub still needed 19 48
List out all word 7 260
Hibernate methods 2 68
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…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

896 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

19 Experts available now in Live!

Get 1:1 Help Now