to copy/cut entire string if no selection
void cbStyledTextCtrl::Copy()
{
   if(true == GetSelectedText().IsEmpty())
   {
      wxScintilla::LineCopy();
   }
   else
   {
      wxScintilla::Copy();
   }
}
//cbstyledtextctrl.cpp
void cbStyledTextCtrl::Cut()
{
   if(true == GetSelectedText().IsEmpty())
   {
      wxScintilla::LineCut();
   }
   else
   {
      wxScintilla::Cut();
   }
}
// main.cpp
        canCut = !eb->IsReadOnly();// && hasSel;
        canSelAll = eb->CanSelectAll();
...
mbar->Enable(idEditCopy, true);//hasSel);
...
m_pToolbar->EnableTool(idEditCopy, true);//hasSel);
        m_pToolbar->EnableTool(idEditPaste, canPaste);