问题描述
嘿伙计,
我正面临一个让我疯狂的恼人问题。
在我的CView派生视图中,我放置了一个由一些按钮组成的ActiveX控件 - 没什么特别的或特别的。在开始时它显示正确,但在视图的OnUpdate() - 方法之后,Control不再显示 - 它只是一个白色平面。当我现在调整视图大小时,控件再次正确绘制。此外,当我点击白色平面上的某个位置时,光标下方的控件按钮会再次显示 - 其他按钮保持白色。
我已经尝试过Invalidate()控件没有成功。
任何提示或技巧?
Hey Folks,
I'm facing an annoying problem that drives me nuts.
On my CView-derived view I placed an ActiveX Control that consists of some buttons - nothing fancy or special. At the beginning it is shown correctly but after the OnUpdate()-method of the view the Control is not shown anymore - it's just a white plane. When I now resize the view the control is painted again correctly. Also when I click somewhere on the white plane the control's button underneath my cursor is then shown again - the others remain white.
I tried already to Invalidate() the control with no success.
Any hints or tips?
推荐答案
这篇关于MFC ActiveX未正确重绘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!