implement the functions in frmWindowConvert