能否根据图片控件的HWND窗口句柄,得到它的CRect区域和您自绘按钮的CRect区域相比较,看看是否有交集(CRect::IntersectRect),就知道图片控件是否和自绘按钮有重叠区域
Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.