Compare commits

...

7 Commits

Author SHA1 Message Date
Simon Rozman
c251f568a9 Make ZRCola window always-on-top while composing
Microsoft Remote Desktop introduced a bug in Windows 10 Falls Update
(1709 release) keeping Remote Desktop window always-on-top. This
prevents ZRCola window to pop-up on Win+F5.

This patch addresses this issue by temporarily making ZRCola window
always-on-top when called by Win+F5/F6, and restoring it back to normal
when finished by F5/F6 or dismissed by Esc.
2019-03-12 20:51:44 +01:00
Simon Rozman
8c2dd29f39 Upgrade to latest WinStd library
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-03-12 20:50:35 +01:00
Simon Rozman
360f42868d Trigger per-user setup on logon 2019-03-12 20:50:35 +01:00
Simon Rozman
a3c73e1c4d Preset version to 2.1.2 2018-11-19 12:07:10 +01:00
Simon Rozman
a8436ee3d7 Silence the missing shcore.dll warning on Windows 7 2018-11-06 09:33:17 +01:00
Simon Rozman
c8ea746474 Preset version to 2.1.1 2018-11-06 09:24:50 +01:00
Simon Rozman
039dae11bc Set version to 2.1 2018-10-09 14:00:02 +02:00
9 changed files with 17 additions and 13 deletions

View File

@@ -90,7 +90,7 @@ public:
protected:
#ifdef __WXMSW__
winstd::win_handle m_running; ///< Global Win32 event to determine if another instance of ZRCola is already running
winstd::win_handle<NULL> m_running; ///< Global Win32 event to determine if another instance of ZRCola is already running
#endif
};

View File

@@ -324,6 +324,7 @@ void wxZRColaFrame::OnSendAbort(wxCommandEvent& event)
{
if (m_hWndSource) {
// Return focus to the source window.
::SetWindowPos(m_hWnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
if (m_wasIconised) Iconize();
::SetActiveWindow(m_hWndSource);
::SetForegroundWindow(m_hWndSource);
@@ -608,6 +609,7 @@ void wxZRColaFrame::DoSend(const wxString& str)
}
// Return focus to the source window and send the input.
::SetWindowPos(m_hWnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
if (m_wasIconised) Iconize();
::SetActiveWindow(m_hWndSource);
::SetForegroundWindow(m_hWndSource);
@@ -629,6 +631,7 @@ void wxZRColaFrame::DoCopyAndReturn(const wxString& str)
}
// Return focus to the source window.
::SetWindowPos(m_hWnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
if (m_wasIconised) Iconize();
::SetActiveWindow(m_hWndSource);
::SetForegroundWindow(m_hWndSource);
@@ -697,6 +700,7 @@ WXLRESULT wxZRColaFrame::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM
Show(true);
Iconize(false);
Raise();
::SetWindowPos(m_hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
::SetActiveWindow(m_hWnd);
//} else if (wxAppBarIsDocked(m_state)) {
// // ZRCola window is currently docked.

View File

@@ -56,7 +56,7 @@ void ZRCola::DBSource::character_bank::build_related()
ZRCola::DBSource::character_bank::build_related_worker::build_related_worker(_In_ const character_bank *cb, _In_ iterator from, _In_ iterator to) :
win_handle((HANDLE)_beginthreadex(NULL, 0, process, this, CREATE_SUSPENDED, NULL)),
win_handle<INVALID_HANDLE_VALUE>((HANDLE)_beginthreadex(NULL, 0, process, this, CREATE_SUSPENDED, NULL)),
m_heap(HeapCreate(0, 0, 0)),
m_cb(cb),
m_from(from),

View File

@@ -269,14 +269,14 @@ namespace ZRCola {
void build_related();
protected:
class build_related_worker : public winstd::win_handle
class build_related_worker : public winstd::win_handle<INVALID_HANDLE_VALUE>
{
public:
build_related_worker(_In_ const character_bank *cb, _In_ iterator from, _In_ iterator to);
inline void join()
{
if (m_h)
if (m_h != invalid)
WaitForSingleObject(m_h, INFINITE);
}

Binary file not shown.

View File

@@ -23,7 +23,7 @@
// Product version as a single DWORD
// Note: Used for version comparison within C/C++ code.
//
#define PRODUCT_VERSION 0x02000600
#define PRODUCT_VERSION 0x02010200
//
// Product version by components
@@ -32,27 +32,27 @@
// separately.
//
#define PRODUCT_VERSION_MAJ 2
#define PRODUCT_VERSION_MIN 0
#define PRODUCT_VERSION_REV 7
#define PRODUCT_VERSION_MIN 1
#define PRODUCT_VERSION_REV 2
#define PRODUCT_VERSION_BUILD 0
//
// Human readable product version and build year for UI
//
#define PRODUCT_VERSION_STR "2.1-beta7"
#define PRODUCT_VERSION_STR "2.1.2"
#define PRODUCT_BUILD_YEAR_STR "2018"
//
// Numerical version presentation for ProductVersion propery in
// MSI packages (syntax: N.N[.N[.N]])
//
#define PRODUCT_VERSION_INST "2.0.7"
#define PRODUCT_VERSION_INST "2.1.2"
//
// The product code for ProductCode property in MSI packages
// Replace with new on every version change, regardless how minor it is.
//
#define PRODUCT_VERSION_GUID "{01B6DD2A-0481-4895-A7FB-720392B97182}"
#define PRODUCT_VERSION_GUID "{C51F698B-96A2-48D7-9CBB-F0E2134FD4DE}"
//
// The product vendor and application name for configuration keeping.