John,
I'm afraid have no idea what you are doing to get a bitmap reference or what kind of bitmap you are trying to use. In general under Win32 long = integer = handle.
> I understand the concept. The problem is, when I want to pass the reference for the bitmap to API. Acccording to the HELP of API, the variable type to be passed will be INTEGER, but how could I pass the bitmap control(image control reference) as INTEGER ????