...
hwnd = CreateWindowEx (exstyle, WindowClassHolder::getInstance()->getWindowClassName(),
L"", type, 0, 0, 0, 0, parentToAddTo, 0,
(HINSTANCE) PlatformUtilities::getCurrentModuleInstanceHandle(), 0);
#if JUCE_DIRECT2D
setCurrentRenderingEngine (1);
#endif
if (hwnd != 0)
{
// In order to receive the "TaskbarCreated" message, we need to request it not being filtered out explicitly
// Note that ChangeWindowMessageFilter is available only on Vista and later
HMODULE hMod = LoadLibrary(TEXT("user32.dll"));
if (hMod)
{
typedef BOOL (WINAPI *TChangeWindowMessageFilter)(UINT,DWORD);
TChangeWindowMessageFilter fn = (TChangeWindowMessageFilter)GetProcAddress(hMod,"ChangeWindowMessageFilter");
if (fn)
{
// taskbarCreatedMessage must be initialized prior to this, i.e. not in the peerWindowProc function...
fn(taskbarCreatedMessage,1); // 1 == MSGFLT_ADD
}
FreeLibrary(hMod);
}
...
Oh, btw, I’m using v1.53 (the zipped version on SF), is there any chance getting a v1.54 soon (with this included) ?
Also, it seems that sometimes if you start an application really early in the logon process, the icon never gets added to the Taskbar, so I propose the following change:
Thanks Rob! I’ll take a look through that and get it implemented.
I’m doing all my current changes in the new modules branch though, and since the taskbar icon stuff has been totally restructured (I’ve actually split it out completely from the core windowing code, and it lives in a different module), it probably won’t be too easy to also replicate in the old main branch.
[quote=“jules”]Thanks Rob! I’ll take a look through that and get it implemented.
I’m doing all my current changes in the new modules branch though, and since the taskbar icon stuff has been totally restructured (I’ve actually split it out completely from the core windowing code, and it lives in a different module), it probably won’t be too easy to also replicate in the old main branch.[/quote]
You’re welcome Ok, I’ll just make a patched zip and use that instead for a while.