i'm new to the whole dll programming.

i'm rewriting my whole program to a activeX dll but i got some problem

here is a code snip where the problem is:




VB Code:
  1. BitBlt objto.hdc, 0, 0, StoreSetup.AcceptTrade_cur.Width, StoreSetup.AcceptTrade_cur.Height, hdc, StoreSetup.AcceptTrade_cur.Left, StoreSetup.AcceptTrade_cur.Top, SRCCOPY

oke so the problem is since the Width,Height,left,top ar never the same i cant use that code into my dll (i got like 10 this like that. for different object)

so how can i get the Width,Height,left,top from a picturebox for example into my dll?

note my dll is compiled alone since its better for updates