|
static
VOID
labelSkypeOutBalanceValue_Visible(
RibbonElement *Element,
IDispatch *Control,
BOOL *Value
) {
XAddin* pAddin = (XAddin *)Element->Context;
*Value = pAddin->SkypeInfo.ConnStatus == SKYPECONNECTION_ONLINE;
return;
UNREFERENCED_PARAMETER(Control);
UNREFERENCED_PARAMETER(Element);
}
static
VOID
labelSkypeOutBalanceValue_Label(
RibbonElement *Element,
IDispatch *Control,
LPWSTR Value,
int cch
) {
XAddin* pAddin = (XAddin *)Element->Context;
if(pAddin->GetBalance(pAddin) != NULL
&& pAddin->GetCurrency(pAddin) != NULL
) {
PszStringFormat2(Value,
cch,
L"%s %s",
pAddin->SkypeInfo.Currency,
pAddin->SkypeInfo.Balance
);
}
else {
PszStringFormat1(Value,
cch,
L"%s",
L"Unavailable"
);
}
return;
UNREFERENCED_PARAMETER(Control);
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.