Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
281264 is currently offline  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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Usage of images in different .h and .cpp files
Next Topic: Drag of mouse while left button is pressed.
Goto Forum:
  


Current Time: Sat May 04 21:21:33 CEST 2024

Total time taken to generate the page: 0.02369 seconds