它的强制类型转换是什么意思?
比如NM_CURVECTRL* pItem = (NM_CURVECTRL*)pNotifyStruct;
看资料NMHDR是这样一个结构体
typedef struct tagNMHDR
{
HWND hwndFrom;
UINT idFrom;
UINT code; // NM_ code
} NMHDR;
NM_CURVECTRL是这样一个结构体
typedef struct tagNM_CURVECTRL {
NMHDR hdr;
void* pCurve; // curve object pointer
int iIndex; // to curve point: index of key point(KP) on curve near cursor, -1 means no KP.
// to curve: index of curve in CCurveCtrl near cursor, -1 means no curve
float fHori; // horizontal value where cursor is
float fVert; // vertical value where cursor is
} NM_CURVECTRL;为什么会能够实现强制转换从而从消息中得到更多信息?
有大虾能否解释一下?什么资料可以推荐参考吗?
比如NM_CURVECTRL* pItem = (NM_CURVECTRL*)pNotifyStruct;
看资料NMHDR是这样一个结构体
typedef struct tagNMHDR
{
HWND hwndFrom;
UINT idFrom;
UINT code; // NM_ code
} NMHDR;
NM_CURVECTRL是这样一个结构体
typedef struct tagNM_CURVECTRL {
NMHDR hdr;
void* pCurve; // curve object pointer
int iIndex; // to curve point: index of key point(KP) on curve near cursor, -1 means no KP.
// to curve: index of curve in CCurveCtrl near cursor, -1 means no curve
float fHori; // horizontal value where cursor is
float fVert; // vertical value where cursor is
} NM_CURVECTRL;为什么会能够实现强制转换从而从消息中得到更多信息?
有大虾能否解释一下?什么资料可以推荐参考吗?
解决方案 »
- 弱女子求解yi VC释放Excel的com对象问题。快浪费整整2个工作日了。。。
- 不显示界面了,只显示代码,望高手指教!!
- activex 安全警告 已经阻止此软件因为无法验证发行者,求解决办法
- 动态链接库调用出错
- 如何在循环中更新控件内容
- 散分,很简单的问题
- 关于响应WM_MOUSEMOVE的问题
- 要画一个3D的图形,比如一个箱子,应该怎么做?
- 请教下,关于 对 对话框 Window Message Process 的重载 的一个问题!
- 请问如何建立一个Edit 控件,让里面呈现滚动的字幕。
- Visual Studio 6.0环境中运行时的DOS窗口一闪而过
- 请问一下 __if_exists 语句是不是只能在 VC 中用啊?
而
做出相应的cast(第一成员是NMHDR hdr;)。详细的看MSDN吧