This should help to remove the line from the bottom:
GetDlgItem $R0 $HWNDPARENT 1045 ShowWindow $R0 ${SW_HIDE}