REM Description: Updates paragraph and frame styles from default template.
REM Filename: updstyls.wmc
REM Created by: Steve Wylie - 12/08/93
DECLARE FUNCTION GetPrivateProfileString LIB "kernel" (lpApplicationName AS STRING, lpKeyName AS STRING, lpDefault AS STRING, lpReturnedString AS STRING, nSize As WORD, lpFileName AS STRING) As Integer
CONST iniFile$ = "wsw.ini"
REM Can't run if no document open
IF GetDocName$() = "" THEN
MESSAGE "Please create a new document or open an existing document first."
STOP
ENDIF
cr$ = CHR$(13)
msgText$ = "This command will import the paragraph and frame styles from your "
msgText$ = msgText$ + "default template." + cr$ + "Any styles in this document with the "
msgText$ = msgText$ + "same names as the styles in your default template will "
msgText$ = msgText$ + "be overwritten." + cr$ + cr$ + "Are you sure you want to do this?"
ret% = MESSAGEBOX(msgText$, "Update Styles from Default Template", 4+32)