Reverted task bar code to 1.0.15 version. That used a window in

its own thread for handling messages.  It seems to fix most of
the task bar bugs but there's still an hourglass cursor on NT
when using the popup menu.
This commit is contained in:
crs
2004-03-31 22:15:13 +00:00
parent 4576b30c37
commit d1a60e848e
3 changed files with 160 additions and 40 deletions

View File

@@ -18,6 +18,7 @@
#define WIN32_LEAN_AND_MEAN
#include "IArchTaskBar.h"
#include "IArchMultithread.h"
#include "stdmap.h"
#include "stdvector.h"
#include <windows.h>
@@ -77,13 +78,21 @@ private:
LRESULT wndProc(HWND, UINT, WPARAM, LPARAM);
static LRESULT CALLBACK
staticWndProc(HWND, UINT, WPARAM, LPARAM);
void threadMainLoop();
static void* threadEntry(void*);
private:
static CArchTaskBarWindows* s_instance;
static HINSTANCE s_appInstance;
// multithread data
CArchMutex m_mutex;
CArchCond m_condVar;
bool m_ready;
int m_result;
CArchThread m_thread;
// child thread data
ATOM m_windowClass;
HWND m_hwnd;
UINT m_taskBarRestart;