Home » Community » Newbie corner » How to compare child in function virtual void ChildMouseEvent with ctrl’s value.
How to compare child in function virtual void ChildMouseEvent with ctrl’s value. [message #27586] |
Sat, 24 July 2010 15:37 |
281264
Messages: 270 Registered: June 2010 Location: Spain
|
Experienced Member |
|
|
Hi,
I am trying to compare the value of the “child” parameter of the above function, in order to compare it with a certain Ctrl. Let as say that we wont to do something ONLY when the mouse event has been triggered by a certain Ctrl. How can we “compare” child with the value of the control?. I have tried this:
void tercero::ChildMouseEvent(Ctrl* child, int event, Point p, int zdelta,dword keyflags)
{
if(event==MOUSEMOVE){
if(child==&gl_control){
......
but it does not work. Shouldn’t it work, since I am comparing child with &gl_control?
Thanks,
Javier
|
|
|
Goto Forum:
Current Time: Sat May 04 21:21:33 CEST 2024
Total time taken to generate the page: 0.02369 seconds
|