Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Windows Media Player 10 ActiveX control, alClient problem

100 views
Skip to first unread message

Koms Bomb

unread,
Jul 25, 2005, 11:19:53 PM7/25/05
to
I import the WMP 10 ActiveX control (TWindowsMediaPlayer),
put it on a form, and set its 'Align' to alClient.
But when playing a media, the WMP is in its original size and
doesn't fit to the parent form, and when I maximize the form,
WMP is still in its size and leave big blank margine.

How to get WMP 10 worked with the VCL form?
And how to get/set WMP's window position and size?
I can find nothing in the WMP SDK.

I've test WMP 6.4, it works very well with align := alclient,
and I even don't do any extra work.


Koms Bomb

unread,
Jul 26, 2005, 10:11:39 PM7/26/05
to
Please ignore it.
I've got the solution.
Cast the WMP's OleObject to IOleInPlaceObject,
then SetObjectRects in the resize event.

0 new messages