Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions GridCtrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2331,11 +2331,6 @@ void CGridCtrl::ClearCells(CCellRange Selection)
Refresh();
}

#ifndef GRIDCONTROL_NO_CLIPBOARD

////////////////////////////////////////////////////////////////////////////////////////
// Clipboard functions

// Deletes the contents from the selected cells
void CGridCtrl::CutSelectedText()
{
Expand All @@ -2351,6 +2346,11 @@ void CGridCtrl::CutSelectedText()
}
}

#ifndef GRIDCONTROL_NO_CLIPBOARD

////////////////////////////////////////////////////////////////////////////////////////
// Clipboard functions

// Copies text from the selected cells to the clipboard
COleDataSource* CGridCtrl::CopyTextFromGrid()
{
Expand Down
2 changes: 1 addition & 1 deletion GridCtrl.h
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,8 @@ class CGridCtrl : public CWnd
///////////////////////////////////////////////////////////////////////////////////
// Clipboard, drag and drop, and cut n' paste operations
///////////////////////////////////////////////////////////////////////////////////
#ifndef GRIDCONTROL_NO_CLIPBOARD
virtual void CutSelectedText();
#ifndef GRIDCONTROL_NO_CLIPBOARD
virtual COleDataSource* CopyTextFromGrid();
virtual BOOL PasteTextToGrid(CCellID cell, COleDataObject* pDataObject, BOOL bSelectPastedCells=TRUE);
#endif
Expand Down