|
I saw you refering to this article at microsoft.public.pocketpc.developer and I thought I'd share a workaround I had to use when writing an installation program. Apparently one of MS's processess blocks the SendMessage call while ActiveSync is running and syncing new items with pocket outlook. It wont handle it until you break the connection. Since it still responded to WM_GETTEXT, I wrote this following snippet that atleast works on ppc 2002+ (I have not tried it with earlier versions).
I never sync with outlook, but when we released a new version 5-6 months ago, I got a steady stream of support mails from users that the installation program just froze while installing the applications, which finally lead me to this fix.
void refresh_today_screen()
{
HWND desktop = FindWindow(L"DesktopExplorerWindow", L"Desktop");
if (desktop == NULL)
SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0xF2, 0);
else
{
::PostMessage(desktop, WM_WININICHANGE, 0xF2, 0);
Sleep(500);
}
}
Jonas
---
"Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot
|
|
|
|
|
Thank you for sharing, Jonas! This is a really good piece of information.
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|