I have the following code,but when the user clicks on the undo menu item - nothing happens.

Is there anything obvious I should or shouldn't be doing?

VB Code:
  1. Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, _
  2.                     ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
  3. Private Const WM_USER = &H400
  4. Private Const EM_UNDO = &HC7
  5.  
  6. Private Sub mnuUndo_Click()
  7. UndoTextBox rtb1
  8. End Sub
  9.  
  10. Private Sub UndoTextBox(Txtbx As RichTextBox)
  11.     Dim X As Long
  12.    
  13.     X = SendMessage(Txtbx.hwnd, EM_UNDO, 0, 0)
  14. End Sub

I am fairly new to API's so is this correct?