I might be way off here, but the hex value of the base-10 number 255 is 0xFF. It appears that you are passing the decimal number 255 to the dialog box. I might be reading this wrong though.