you named your variable hRect, but it's not a handle, so it should be just rect for example.