本文整理汇总了C++中UIWindow::GetClassName方法的典型用法代码示例。如果您正苦于以下问题:C++ UIWindow::GetClassName方法的具体用法?C++ UIWindow::GetClassName怎么用?C++ UIWindow::GetClassName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UIWindow
的用法示例。
在下文中一共展示了UIWindow::GetClassName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Draw
HRESULT UIButtonGroup::Draw(DK_IMAGE drawingImg)
{
if (!m_bIsVisible)
return S_OK;
HRESULT hr(S_OK);
DK_IMAGE imgSelf;
int left = m_iLeft, top = m_iTop, right = m_iLeft + m_iWidth, bottom = m_iTop + m_iHeight;
DK_RECT rcSelf={left, top, right, bottom};
RTN_HR_IF_FAILED(CropImage(
drawingImg,
rcSelf,
&imgSelf
));
CTpGraphics grf(imgSelf);
ValidChildBtnShown();
int iSize = GetChildrenCount();
for (int i = 0; i < iSize; i++)
{
UIWindow* pWin = GetChildByIndex(i);
if (pWin && pWin->IsVisible())
{
DebugPrintf(DLC_GUI_VERBOSE,
"%s: Drawing Child %d / %d : %s, (%d, %d)-(%d, %d), %s ...",
GetClassName(), i, iSize, pWin->GetClassName(),
pWin->GetX(), pWin->GetY(),
pWin->GetWidth(), pWin->GetHeight(),
pWin->GetText());
hr = pWin->Draw(imgSelf);
if (!SUCCEEDED(hr))
{
DebugPrintf(DLC_GUI_VERBOSE, "Draw child failed");
}
}
else
{
DebugPrintf(DLC_ERROR, "%s: FAILED to get child %d/%d !!!", GetClassName(), i, iSize);
}
}
if (m_btnsDirection == BGD_Horizontal)
{
DrawTopLine(grf);
DrawBottomLine(grf);
}
DrawSplitLine(grf);
if (m_currentFocusedIndex >= 0 && (unsigned int)m_currentFocusedIndex < GetChildrenCount())
{
DrawFocusedSymbol(imgSelf);
}
return hr;
}