Link Search Menu Expand Document

Root.ExternalCall Event


Similar to the EventListener class, but easier to use than the EventListener class.

It is possible to raise an event in Biz / Browser Mobile by sending a Windows API SendMessage or PostMessage to the top frame window of Biz / Browser Mobile.

This makes it possible to generate an event from an external program or plug-in DLL, wait for a state change without polling, or make a pseudo-push type operation.

The following child objects are attached to the Event object.

Type Name Description
Number type Currently fixed to 0
Number param LPARAM value specified in SendMessage or PostMessage API

Sender C program sample

void SendEvent (LPARAM param)
{
    / * Get window message ID ( this ID is defined when Biz / Browser Mobile starts ) * /
    UINT WM_BBEXTERNALCALL = RegisterWindowMessage (_T ("BizBrowserExternalCall"));
 
    / * Get Biz / Browser Mobile top frame window * /
    HWND hWnd = FindWindow (_T ("Afx: BizBrowserMobileClass"), NULL);
 
    / * Send message * /
    PostMessage (WM_BBEXTERNALCALL, 0, param);
}


Can only be used in Mobile
Supported since Mobile Ver.3.2.0 and later version.