Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 HDC 上绘制 HBITMAP,
我使用了 StretchDIBits。它工作正常。::拉伸DIBits。
但是,我只想要一个窗口来观看绘图结果,在窗口旁边,我希望stretchDIBits不生效(它不能在其他区域上绘制),我该怎么做?
创建子窗口时,请确保将WS_CLIPSIBLINGS样式设置为不允许在WM_PAINT.
WS_CLIPSIBLINGS
WM_PAINT
除此之外,SelectClipRegion可能是您想要的。
SelectClipRegion