abuttonindex为整型
和各个按钮的对应值是多少?怎么查看?

解决方案 »

  1.   

    Button Name Default Index Description
    First NBDI_FIRST Moves the cursor to the first dataset record.
    PriorPage NBDI_PRIORPAGE Moves the cursor to the previous dataset page.
    Prior NBDI_PRIOR Moves the cursor to the previous dataset record.
    Next NBDI_NEXT Moves the cursor to the next dataset record.
    NextPage NBDI_NEXTPAGE Moves the cursor to the next dataset page.
    Last NBDI_LAST Moves the cursor to the last dataset record.
    Insert NBDI_INSERT Inserts a new record into the connected dataset.
    Append NBDI_APPEND Appends a new record into the connected dataset.
    Delete NBDI_DELETE Deletes the current record from the connected dataset.
    Edit NBDI_EDIT Sets the connected dataset into edit state.
    Post NBDI_POST Saves the modified record to the connected dataset.
    Cancel NBDI_CANCEL Cancels all the unsaved modifications to the current record of the connected dataset.
    Refresh NBDI_REFRESH Fetches data from the dataset to update the data view in the appropriate control.
    SaveBook NBDI_SAVEBOOKMARK Saves a book for the connected dataset.
    GotoBook NBDI_GOTOBOOKMARK Moves the cursor to the previously saved book in the connected dataset.
    Filter NBDI_FILTER Invokes the Filter Dialog for the managed dataset.
    常数NBDI_FIRST 对应0
    常数NBDI_PRIORPAGE 对应 1
    ……
    ……
    常数NBDI_FILTER 对应 15
    也就是它们的Default Index 分别对应是0——15