Skip to content

Commit

Permalink
Addmcopy to clipboard feature
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLadyLuthien committed Oct 23, 2021
1 parent 3bb7b52 commit 01fdb13
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 0 deletions.
Binary file modified HP11C.obj
Binary file not shown.
Binary file modified MainWindow.obj
Binary file not shown.
Binary file modified bin/HP11C.exe
Binary file not shown.
Binary file modified bin/HP11C.ilk
Binary file not shown.
Binary file modified bin/HP11C.pdb
Binary file not shown.
Binary file modified button.obj
Binary file not shown.
Binary file modified buttonTypes.obj
Binary file not shown.
Binary file modified decode.obj
Binary file not shown.
Binary file modified files.obj
Binary file not shown.
Binary file modified function.obj
Binary file not shown.
Binary file modified layerWindow.obj
Binary file not shown.
Binary file modified registers.obj
Binary file not shown.
14 changes: 14 additions & 0 deletions src/function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,20 @@ void SetX(long double val)
}

stackString = str;

if (autoCopyToClipboard)
{
const WCHAR* output = stackString.c_str();
const size_t len = stackString.size() + 1;
HGLOBAL hMem = GlobalAlloc(GMEM_MOVEABLE, len);
memcpy(GlobalLock(hMem), output, len);
GlobalUnlock(hMem);
OpenClipboard(NULL);
EmptyClipboard();
SetClipboardData(CF_UNICODETEXT, hMem);
CloseClipboard();
}

}

void SetNewX(long double val)
Expand Down
Binary file modified vc140.pdb
Binary file not shown.
Binary file modified window.obj
Binary file not shown.

0 comments on commit 01fdb13

Please sign in to comment.