My VCX library contains a class form named MyForm created on base class 'form'. And my COM-EXE looks like the following...
DEFINE CLASS MyClass as session OLEPUBLIC
>>FUNCTION DisplayMyForm() as VOID
>>>>SET CLASSLIB TO "MyClassLib"
>>>>oFrm = CREATEOBJECT("MyForm")
>>>>oFrm.show(1)
>>>>READ EVENTS
>>ENDFUNC
ENDDEFINE
oFrm = CREATEOBJECT("MyCOMEXE.MyClass")
oFrm.DisplayMyForm()
When the form is show, the problem is the background is not repaint when I move the form or when I resize the form. But I don't have that problem when I do the following (instantiate directly from VCX without using COM-EXE)...
oFrm = CREATEOBJECT("MyForm")
oFrm.show(1)
READ EVENTS
My question is: Why the COM-EXE cause that problem?
And how can I resolve that?