use INT_PTR as return type for dialog callbacks as documented in favor of portability