|
static const int kMaxUserFullName = 512;
static
VOID
ebFullName_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
ebFullName_GetText(
RibbonElement *Element,
IDispatch *Control,
LPWSTR Value,
int cch
) {
XAddin* pAddin = (XAddin *)Element->Context;
if(pAddin->GetFullName(pAddin) != NULL) {
PszStringFormat1(Value,
cch,
L"%s",
pAddin->GetFullName(pAddin)
);
}
else {
PszStringFormat1(Value,
cch,
L"%s",
L"Unavailable"
);
}
return;
UNREFERENCED_PARAMETER(Control);
UNREFERENCED_PARAMETER(Element);
}
static
VOID
ebFullName_OnChange(
RibbonElement *Element,
IDispatch *Control,
LPCWSTR Value
) {
XAddin* pAddin = (XAddin *)Element->Context;
pAddin->SetFullName(pAddin, Value);
return;
UNREFERENCED_PARAMETER(Control);
UNREFERENCED_PARAMETER(Element);
}
|
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.