Re: ActiveX Control: Preview at Design Time

Tech-Archive recommends: Fix windows errors by optimizing your registry



Don't put standard interfaces in type libs. If they aren't in one
already, there might just be a good reason for that... :)

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://vcfaq.mvps.org
=====================================

"Udo Schneider" <Udo.Schneider@xxxxxxxxxxxxxx> wrote in message
news:f6mbqp$i2h$1@xxxxxxxxxxxxxxxxxxxx
Igor Tandetnik wrote:
You need to call IAdviseSink::OnViewChange on the pointer passed to your
SetAdvise, whenever anything changes that might affect your view. This is
roughly equivalent to calling InvalidateWindow to trigger WM_PAINT.
Did this - thanks for the advise. However I just found out what's the root
cause. The Typelib for IViewObject I generated contained the remote
interface definitions (see other post). I have to find out how to force
MIDL to generate the local definitions.

CU,

Udo


.