RButtonDown函数参数问题,谢谢!

来源:百度知道 编辑:UC知道 时间:2024/06/15 12:51:39
我在Dib 类中调用了OnRButtonDown函数,语句是这么写的:
pView->OnRButtonDown(MK_RBUTTON, point);

error C2065: 'point' : undeclared identifier;
请问如何改? 还有第一个参数这么写对吗?从MNDN上查的

你要模拟右键消息吗?

afx_msg void OnRButtonDown( UINT nFlags, CPoint point );

Parameters

nFlags

Indicates whether various virtual keys are down. This parameter can be any combination of the following values:

MK_CONTROL Set if CTRL key is down.

MK_LBUTTON Set if left mouse button is down.

MK_MBUTTON Set if middle mouse button is down.

MK_RBUTTON Set if right mouse button is down.

MK_SHIFT Set if SHIFT key is down.
point

Specifies the x and y coordinates of the cursor. These coordinates are always relative to the upper-left corner of the window.