处理窗口激活消息

在MDI环境中工作时,每个窗口都可能有自己的位图数据或转换。因此,应该设置工具箱数据以反映这些更改。

L_VOID OnMDIActivate (HWND HWND, L_BOOL active, HWND hActivate, HWND hDeactivate)PAINTXFORM变换;HDC hdcCompatibility;矩形rcDCRect;/*设置绘图工具箱数据*/hdcCompatibility = GetDC (hMDIChildWnd);L_PntSetMetrics(油漆,hdcCompatibility, MDIChildData.)pBitmap MDIChildData。hPalette);ReleaseDC (hWnd, hdcCompatibility);XForm。nZoom = MDIChildData。nZoomFactor;XForm。nXOffset = MDIChildData。nHscroll;XForm。nYOffset = MDIChildData。nVscroll;L_PntSetTransformation (paint, &XForm);GetClientRect (hMDIChildWnd, & rdcdcrect);L_PntSetDCExtents(油漆,&rcDCRect);L_PntSetClipRgn (pPaint MDIChildData。hClipRng);

LEADTOOLS数字油漆C API帮助
188金宝搏的网址客服|支持|联系我们|知识产权的通知
©1991 - 2021领先的技术公司。保留所有权利。