|
-
Sep 9th, 2005, 02:34 AM
#1
Thread Starter
New Member
ActiveX & WinAPI's
Hey All,
I want to create a (.ocx) control which acts as a container for other controls. but during the run time the activeX (.ocx) must be transparent and only the controls which are placed during the design time must be visible.
For this i create a ocx setting the contained control property =True.
Here i used the CreatePolyPolygon (WINAPI) and SetWindowRgn Api's.
But from within the usercontrol i am not able to exactly get the coordinates of the other control which are placed on my usercontrol.
i used
X = usercontrol.ScaleX(ocontrol.Left,usercontrol.scalemode,vbpoints)
Y= usercontrol.ScaleY(ocontrol.Top,usercontrol.scalemode,vbpoints)
the above code returns a point, but is not exact.
Please let me know how could i exactly retrieve the coordinates of the controls which are placed on my usercontrol from within my usercontrol.
Please help me
Prior Thanks for all.
with regards,
K.Senthil babu([email protected])
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|