Hi all,

I have a weird problem that only happens on 1 particular type of
Windows Mobile 2003 SE device (Qtek S100). On all other devices, the
problem never occurs.

I have made a custom Today item in which I included an HTMLView. In it
I load a local HTML page, so it shows an HTML page on the Today
screen. However, on the S100, when I want to go for example to the
Power settings (Settings->System->Power), the Power settings screen
doesn't show. When I then return to the Today screen, my Today item
(and all other custom made items) is gone!

So apparently there's some connection between my custom Today item and
some Control Panel apps(!?)

I don't get it at all! And it ONLY occurs on the S100.

Does anybody here have any clue?

The code which I use to create the HTMLView:

HWND APIENTRY InitializeCustomItem(TODAYLISTITEM* ptli, HWND
hwndParent)
{
TCHAR szFileName[256];
HWND hWnd;

if (!ptli->fEnabled)
return FALSE;

MyRegisterClass(ptli->hinstDLL);

GetOwnFileName(hInstance, false, szFileName);
hWnd = CreateWindow(szFileName, NULL, WS_VISIBLE | WS_CHILD,
0, 0, GetSystemMetrics(SM_CYSCREEN), 0,
hwndParent, NULL, ptli->hinstDLL, 0);

// create html control
VERIFY(InitHTMLControl(hInstance));
hWndHTML = CreateWindow(WC_HTML, NULL,
WS_CHILD | WS_VISIBLE | HS_NOSCROLL,
0, 0, 240, 320, hWnd, NULL, ptli->hinstDLL, NULL);
if (!hWndHTML)
{
return FALSE;
}
BSTR bstrURL = SysAllocString(TEXT("file://\\Temp\\test.html"));
SendMessage(hWndHTML, DTM_NAVIGATE, 0, (LPARAM)bstrURL);
SysFreeString(bstrURL);

return hWnd;
}