摘要:
void CMyDicomViewerView::OnMouseMove(UINT nFlags, CPoint point){// TODO: 在此添加消息处理程序代码和/或调用默认值if(beginX != 0 && beginY != 0){int xCount = point.x - beginX;int yCount = point.y - beginY;if(abs(x... 阅读全文
摘要:
struct ImageInfo{BITMAPINFO header;void* image;ImageInfo(){image = NULL;}~ImageInfo(){if(image!=NULL){delete image;image = NULL;}}};结果是当进入函数体就会实例化,而不是执行到它!所以路途退出时,出会析构错误!呵呵 阅读全文