Function Reference


_GUICtrlRichEdit_GetVersion

Retrieves the version of Rich Edit

#include <GuiRichEdit.au3>
_GUICtrlRichEdit_GetVersion ( )

Return Value

None.

Remarks

The versions of Rich Edit included in versions of Windows are:
3.0 - Windows XP
3.1 - Windows Vista
4.0 - Windows XP SP1
4.1 - Windows Vista or later

Example

#include <GUIConstantsEx.au3>
#include <GuiRichEdit.au3>
#include <MsgBoxConstants.au3>
#include <WindowsConstants.au3>

Example()

Func Example()
        Local $hGui, $iMsg, $hRichEdit
        $hGui = GUICreate("Example (" & StringTrimRight(@ScriptName, StringLen(".exe")) & ")", 320, 350, -1, -1)
        $hRichEdit = _GUICtrlRichEdit_Create($hGui, "This is a test.", 10, 10, 300, 220, _
                        BitOR($ES_MULTILINE, $WS_VSCROLL, $ES_AUTOVSCROLL))
        GUISetState(@SW_SHOW)

        _GUICtrlRichEdit_SetText($hRichEdit, "This is a test.")
        MsgBox($MB_SYSTEMMODAL, "", _GUICtrlRichEdit_GetVersion())

        While True
                $iMsg = GUIGetMsg()
                Select
                        Case $iMsg = $GUI_EVENT_CLOSE
                                _GUICtrlRichEdit_Destroy($hRichEdit) ; needed unless script crashes
                                ; GUIDelete()   ; is OK too
                                Exit
                EndSelect
        WEnd
EndFunc   ;==>Example