本文整理汇总了C++中CWinApp::DoWaitCursor方法的典型用法代码示例。如果您正苦于以下问题:C++ CWinApp::DoWaitCursor方法的具体用法?C++ CWinApp::DoWaitCursor怎么用?C++ CWinApp::DoWaitCursor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CWinApp
的用法示例。
在下文中一共展示了CWinApp::DoWaitCursor方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ASSERT
void CuDlgDBEventPane01::InitializeDBEvent (CString& str, CCheckListBox* pList)
{
CWinApp* app = NULL;
CView* pView = (CView*)GetParent();
ASSERT (pView);
CDbeventDoc* pDoc = (CDbeventDoc*)pView->GetDocument();
ASSERT (pDoc);
int cur, ires;
TCHAR buf [MAXOBJECTNAME];
TCHAR buffilter [MAXOBJECTNAME];
LPUCHAR parentstrings [MAXPLEVEL];
memset (buf, 0, sizeof (buf));
memset (buffilter, 0, sizeof (buffilter));
if (!pList)
{
CleanListBox (&m_cListDBEvent);
m_cListDBEvent.ResetContent();
}
CString strNone;
strNone.LoadString (IDS_DATABASE_NONE);
if (str == strNone)
{
m_strCurrentDB = "";
return;
}
parentstrings [0] = (LPUCHAR)(LPCTSTR)str;
parentstrings [1] = NULL;
app = AfxGetApp();
app->DoWaitCursor (1);
ires = DOMGetFirstObject (
pDoc->m_hNode,
OT_DBEVENT,
1,
parentstrings,
pDoc->m_bSysDBEvent,
NULL,
(LPUCHAR)buf,
(LPUCHAR)buffilter,
NULL);
while (ires == RES_SUCCESS)
{
if (pList)
cur = pList->AddString ((LPCTSTR)buf);
else
cur = m_cListDBEvent.AddString ((LPCTSTR)buf);
if (cur != LB_ERR)
{
LPTSTR lpszOwner;
lpszOwner = new TCHAR [lstrlen (buffilter)+1];
lstrcpy (lpszOwner, (LPTSTR)buffilter);
if (pList)
pList->SetItemData (cur, (DWORD)lpszOwner);
else
m_cListDBEvent.SetItemData (cur, (DWORD)lpszOwner);
}
ires = DOMGetNextObject ((LPUCHAR)buf, (LPUCHAR)buffilter, NULL);
}
app->DoWaitCursor (-1);
m_strCurrentDB = str;
}