BCGSoft Professional Editor for MFC
virtual void CBCGPEditCtrl::OnFailedOperation ( DWORD  dwOpType)
inlinevirtual

Called when an operation has failed.

Override this function in a derived class to get notified about that.

dwOpType is a combination of two flags: operation failure reason (high bit) and operation code.

Operation codes:

  • g_dwOpUndo - undo
  • g_dwOpRedo - redo
  • g_dwOpSetOvrMode - set override mode
  • g_dwOpInvokeIS - invoke IntelliSense
  • g_dwOpLeft - move the caret left
  • g_dwOpRight - move the caret right
  • g_dwOpUp - move the caret up
  • g_dwOpDown - move the caret down
  • g_dwOpPgUp - page up
  • g_dwOpPgDn - page down
  • g_dwOpHome - home
  • g_dwOpNextWord - move the caret to the next word
  • g_dwOpPrevWord - move the caret to the previous word
  • g_dwOpPrevIndent - back indent
  • g_dwOpInsTab - insert tab
  • g_dwOpLineConcat - line concatenation (as a result of '\n' deletion)
  • g_dwOpDelete - delete
  • g_dwOpPaste - paste
  • g_dwOpCopy - copy
  • g_dwOpCut - cut
  • g_dwOpDelSelText - delete selected text
  • g_dwOpMakeSel - make selection
  • g_dwOpIndent - forward indent
  • g_dwOpDragDrop - drag & drop

Operation failure reasons:

  • g_dwOpReasonLength - string length exceeds the maximum allowed
  • g_dwOpReasonBufEmpty - buffer is empty
  • g_dwOpReasonReadOnly - edit control is read only
  • g_dwOpReasonError - other error
Parameters
dwOpTypeSpecifies the operation code combined with operation reason.