TCurrentLabel
Messages
FPCM_TCURRENTLABEL
Structures
struct SFPCTCurrentLabel
{
// [in]
struct
{
LPCTSTR lpszBuffer;
} target;
// [in, out]
struct
{
LPCTSTR lpszBuffer;
DWORD dwBufferSize;
} Result;
// [out]
HRESULT hr;
};
Description
Calls TCurrentLabel.
Example
void InvokeTCurrentLabel(HWND hwndFlashPlayerControl, LPCTSTR target)
{
SFPCTCurrentLabel info;
info.target.lpszBuffer = target;
info.Result.lpszBuffer = NULL;
::SendMessage(hwndFlashPlayerControl, FPCM_TCURRENTLABEL, 0, (LPARAM)&info);
if FAILED(info.hr)
// Error
{
return;
}
info.Result.lpszBuffer = (TCHAR*)LocalAlloc(LPTR, info.Result.dwBufferSize * sizeof(TCHAR));
::SendMessage(hwndFlashPlayerControl, FPCM_TCURRENTLABEL, 0, (LPARAM)&info);
if FAILED(info.hr)
// Error
{
// ...
}
else
// OK
{
::MessageBox(NULL, info.Result.lpszBuffer, _T("Result"), MB_OK);
}
LocalFree((HLOCAL)info.Result.lpszBuffer);
}