Solved

MSFlexGrid from C++

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

757 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

26 Experts available now in Live!

Get 1:1 Help Now