Page Menu
Home
desp's stash
Search
Configure Global Search
Log In
Files
F554054
DonateGui.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
DonateGui.cpp
View Options
#include
"DonateGui.h"
#include
"Scylla.h"
#include
"Architecture.h"
const
WCHAR
DonateGui
::
TEXT_DONATE
[]
=
L
"If you like this tool, please feel free to donate some Bitcoins to support this project.
\n\n\n
BTC Address:
\n\n
"
TEXT
(
DONATE_BTC_ADDRESS
);
BOOL
DonateGui
::
OnInitDialog
(
CWindow
wndFocus
,
LPARAM
lInitParam
)
{
DoDataExchange
();
// attach controls
DonateInfo
.
SetWindowText
(
TEXT_DONATE
);
CenterWindow
();
// Set focus to button
GotoDlgCtrl
(
GetDlgItem
(
IDC_BUTTON_COPYBTC
));
return
FALSE
;
}
void
DonateGui
::
OnClose
()
{
EndDialog
(
0
);
}
void
DonateGui
::
OnExit
(
UINT
uNotifyCode
,
int
nID
,
CWindow
wndCtl
)
{
SendMessage
(
WM_CLOSE
);
}
void
DonateGui
::
CopyBtcAddress
(
UINT
uNotifyCode
,
int
nID
,
CWindow
wndCtl
)
{
if
(
OpenClipboard
())
{
EmptyClipboard
();
size_t
len
=
strlen
(
DONATE_BTC_ADDRESS
);
HGLOBAL
hMem
=
GlobalAlloc
(
GMEM_MOVEABLE
,
(
len
+
1
)
*
sizeof
(
CHAR
));
if
(
hMem
)
{
strcpy_s
(
static_cast
<
CHAR
*>
(
GlobalLock
(
hMem
)),
len
+
1
,
DONATE_BTC_ADDRESS
);
GlobalUnlock
(
hMem
);
if
(
!
SetClipboardData
(
CF_TEXT
,
hMem
))
{
GlobalFree
(
hMem
);
}
}
CloseClipboard
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Mon, Feb 9, 11:57 PM (18 h, 3 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f8/6e/b5b47867d4061309523e37c01921
Attached To
rSCY Scylla
Event Timeline
Log In to Comment