mdx? i would use ktools.dll, download that and read the documentation, its extremely helpful, i read it and was docking stuff all over the place!!

hope i helped