'[NAME] FF_Control_Disable_ReadOnly
'[AUTHORNAME] 
'[EMAIL] 
'[WEBSITE] 
'[VERSION] 
'[ISFAVORITE] No
'[EXPAND] No
'[KEYWORDS] 
'disable
'[/KEYWORDS]
'[DESCRIPTION] 
'   Disable a Control or Form so that it no longer receives any 
'   messages or accepts user interaction.
'
'   hWndControl: Handle of Control or Form (e.g. HWND_FORM1_COMMAND1)
'
'[/DESCRIPTION]
'[CODESTART]
Sub FF_Control_Disable_ReadOnly ( ByVal hWndControl As Dword ) 
    ' Do a check to ensure that this is actually a window handle
    If IsWindow(hWndControl) Then  
       
       ' Disable the window READONLY property.
        SendMessage hWndControl, %EM_SETREADONLY, %FALSE, 0     ' to turn Read Only Property Off
       
    End If
End Sub


