mirror of
https://github.com/yuanyuanxiang/SimpleRemoter.git
synced 2026-01-21 23:13:08 +08:00
Improve: Add more features/buttons for remote desktop toolbar
This commit is contained in:
@@ -27,6 +27,7 @@ void CDlgFileSend::DoDataExchange(CDataExchange* pDX)
|
||||
|
||||
BEGIN_MESSAGE_MAP(CDlgFileSend, CDialog)
|
||||
ON_WM_CLOSE()
|
||||
ON_WM_TIMER()
|
||||
ON_MESSAGE(WM_UPDATEFILEPROGRESS, &CDlgFileSend::OnUpdateFileProgress)
|
||||
ON_MESSAGE(WM_FINISHFILESEND, &CDlgFileSend::OnFinishFileSend)
|
||||
END_MESSAGE_MAP()
|
||||
@@ -83,6 +84,7 @@ LRESULT CDlgFileSend::OnUpdateFileProgress(WPARAM wParam, LPARAM lParam)
|
||||
ShowWindow(SW_SHOW);
|
||||
BringWindowToTop();
|
||||
SetForegroundWindow();
|
||||
if (percent>=100.) SetTimer(1, 3000, NULL);
|
||||
|
||||
delete pChunk;
|
||||
delete pFile;
|
||||
@@ -128,3 +130,10 @@ void CDlgFileSend::OnClose()
|
||||
|
||||
DialogBase::OnClose();
|
||||
}
|
||||
|
||||
void CDlgFileSend::OnTimer(UINT_PTR nIDEvent) {
|
||||
if (nIDEvent == 1) {
|
||||
KillTimer(1);
|
||||
PostMessageA(WM_CLOSE, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user