Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[blue]Option Explicit
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Const WM_USER = &H400&
Private Const EM_GETOLEINTERFACE = (WM_USER + 60)
Public Function FreezeRTB(TargetRTB As RichTextBox, FreezeIt As Boolean) As Long
Dim myIUnknown As Object
Dim TextRange As ITextRange
Dim tomDoc As ITextDocument
Dim result As Long
SendMessage TargetRTB.hwnd, EM_GETOLEINTERFACE, 0&, myIUnknown
Set tomDoc = myIUnknown
TargetRTB.Locked = FreezeIt
If FreezeIt Then
FreezeRTB = tomDoc.Freeze
Else
FreezeRTB = tomDoc.Unfreeze
End If
End Function[/blue]
Private Declare Function LockWindowUpdate Lib "USER32" (ByVal hwndLock As Long) As Long
Private Sub Command1_Click()
LockWindowUpdate RichTextBox1.hWnd
End Sub
Private Sub Command2_Click()
LockWindowUpdate 0
End Sub