TILE_EVENT (Windows Embedded CE 6.0)

1/6/2010

This enumeration defines the events that the tiling engine sends.

Elements

  • TILE_EVENT_HTMLTHREAD_PRIORITY_NORMAL
    Indicates that the event handler should set the priority of the HTML thread to normal.
  • TILE_EVENT_HTMLTHREAD_PRIORITY_BELOWNORMAL
    Indicates that the event handler should set the priority of the HTML thread to below normal.
  • TILE_EVENT_PAGEDOCSIZE_CHANGE
    Sent when the size of the HTML window changes.
  • TILE_EVENT_PAGE_CHANGE
    Sent when the HTML page or Web content changes.

Example

The following code example shows how you can handle these event messages.

LRESULT CALLBACK WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
    switch (uMsg)
    {
    case WM_TILE_EVENT:
        switch(wParam)
        {
        case TILE_EVENT_HTMLTHREAD_PRIORITY_NORMAL:
            GetWebBrowser()->SetBelowNormalPriority(false);
            break;
        case TILE_EVENT_HTMLTHREAD_PRIORITY_BELOWNORMAL:
            GetWebBrowser()->SetBelowNormalPriority(true);
            break;
        case TILE_EVENT_PAGEDOCSIZE_CHANGE:
            // Get current view scale.
            float fViewScale;
            CHR(TPGetViewScale(m_hTileProxy, &fViewScale));
            CBR(fViewScale > 0.0f);

            // Get page doc size.
            SIZE szDoc;
            CHR(TPGetViewDocSize(m_hTileProxy, &szDoc));
            szDoc.cx /= fViewScale;
            szDoc.cy /= fViewScale;
               
            break;
        case TILE_EVENT_PAGE_CHANGE:
            GetWebBrowser()->OnPageChanged(*(reinterpret_cast<float>(lParam)));
            break;
        }
        return 1;
}
return DefWindowProc(hWnd, uMsg, wParam, lParam);
}

Requirements

Header TileProxy.h
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Other Resources

Internet Explorer Embedded Tiling Engine Reference
Customizing the Browser User Interface