TGetPropertyAsNumber

Messages

FPCM_TGETPROPERTYASNUMBER

Structures

struct SFPCTGetPropertyAsNumber
{
    // [in]
    struct
    {
        LPCTSTR lpszBuffer;
    } target;
 
    // [in]
    int property;
 
    // [out]
    double Result;
 
    // [out]
    HRESULT hr;
};

Description

Calls TGetPropertyAsNumber.

Example

void InvokeTGetPropertyAsNumber(HWND hwndFlashPlayerControl, LPCTSTR target, int property)
{
    SFPCTGetPropertyAsNumber info;
 
    info.target.lpszBuffer = target;
    info.property = property;
 
    ::SendMessage(hwndFlashPlayerControl, FPCM_TGETPROPERTYASNUMBER, 0, (LPARAM)&info);
 
    if FAILED(info.hr)
        // Error
    {
        // ...
    }
    else
        // OK
    {
        TCHAR lpszBuffer[1024];
 
        wsprintf(lpszBuffer, _T("%d"), info.Result);
 
        ::MessageBox(NULL, lpszBuffer, _T("Result"), MB_OK);
    }
}