Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

MSFlexGrid from C++

Posted on 1997-12-09
3
Medium Priority
?
272 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
[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
3 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 400 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

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…
In this post we will learn different types of Android Layout and some basics of an Android App.
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 will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

722 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