Origin Ver. and Service Release: Origin 8G, SR6
Operating System: Win XP
Hi,
I think the GetGraphPoints::GetCursorPos() Method does not work well.
I want to override the virtual function GetGraphPoints::OnDisplay().
For that reason I derived a class from GetGraphPoints, and implemented the
virtual function OnDisplay() like listed below:
void My_GetGraphPoints::OnDisplay(string& str, int nPoint)
{
double dX, dY;
int nIndex;
if( !GetCursorPos(dX, dY, &nIndex) )
return;
string strMessage, strLabel;
strLabel = "Data Display";
strMessage.Format("X: %f\tY: %f\tIndex: %d", dX, dY, nIndex);
MessageBox( GetWindow(), strMessage, strLabel);
}
Now when I start selecting points, after calling GetGraphPoints::GetPoints( int nPts, ...)
Lets imagine I selected a point with x-Value = 128.35 ; y-Value = 13.46 and index: 2372
The upcoming MessageBox shows a Message like this: X: 13.460000 Y: 0.000000 Index: 2372
What happened? The y-Value of selected point is stored in the variable dX, variable dY got the value 0.0,
only value of nIndex is correct.
Could someone take a look at this please? Thank you.
|-- TreeNode
...|-- a??
...|-- ha!!