本文整理汇总了C++中SyncDocument::prevRowBookmark方法的典型用法代码示例。如果您正苦于以下问题:C++ SyncDocument::prevRowBookmark方法的具体用法?C++ SyncDocument::prevRowBookmark怎么用?C++ SyncDocument::prevRowBookmark使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SyncDocument
的用法示例。
在下文中一共展示了SyncDocument::prevRowBookmark方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: editPreviousBookmark
void TrackView::editPreviousBookmark()
{
SyncDocument *doc = getDocument();
int row = doc->prevRowBookmark(getEditRow());
if (row >= 0)
setEditRow(row, false);
}
示例2: DefWindowProcW
//.........这里部分代码省略.........
break;
case ID_FILE_REMOTEEXPORT:
doc->clientSocket.sendSaveCommand();
break;
case ID_RECENTFILES_FILE1:
case ID_RECENTFILES_FILE2:
case ID_RECENTFILES_FILE3:
case ID_RECENTFILES_FILE4:
case ID_RECENTFILES_FILE5:
{
int index = LOWORD(wParam) - ID_RECENTFILES_FILE1;
std::wstring fileName;
if (mruFileList.getEntry(index, fileName))
{
loadDocument(fileName);
}
}
break;
case ID_FILE_EXIT:
attemptQuit();
break;
case ID_EDIT_UNDO: SendMessage(trackViewWin, WM_UNDO, 0, 0); break;
case ID_EDIT_REDO: SendMessage(trackViewWin, WM_REDO, 0, 0); break;
case ID_EDIT_COPY: SendMessage(trackViewWin, WM_COPY, 0, 0); break;
case ID_EDIT_CUT: SendMessage(trackViewWin, WM_CUT, 0, 0); break;
case ID_EDIT_PASTE: SendMessage(trackViewWin, WM_PASTE, 0, 0); break;
case ID_EDIT_BOOKMARK_PREV:
{
int row = doc->prevRowBookmark(trackView->getEditRow());
if (row >= 0)
trackView->setEditRow(row);
}
break;
case ID_EDIT_BOOKMARK_NEXT:
{
int row = doc->nextRowBookmark(trackView->getEditRow());
if (row >= 0)
trackView->setEditRow(row);
}
break;
case ID_EDIT_SETROWS:
{
size_t rows = trackView->getRows();
INT_PTR result = DialogBoxParam(hInst, MAKEINTRESOURCE(IDD_SETROWS), hwnd, (DLGPROC)setRowsDialogProc, (LPARAM)&rows);
if (FAILED(result))
error("unable to create dialog box");
}
break;
case ID_EDIT_BIAS:
{
int initialBias = 0;
INT_PTR result = DialogBoxParam(hInst, MAKEINTRESOURCE(IDD_BIASSELECTION), hwnd, (DLGPROC)biasSelectionDialogProc, (LPARAM)&initialBias);
if (FAILED(result))
error("unable to create dialog box");
}
break;
}