wpFilterPopupMenu - Example Code

In this example, the Tree view option is removed from the Open popup menu.

SOM_Scope ULONG   SOMLINK TextFolderwps_wpFilterPopupMenu(TextFolder *somSelf,
                ULONG ulFlags,
                HWND hwndCnr,
                BOOL fMultiSelect)

{
    /* TextFolderData *somThis = TextFolderGetData(somSelf); */
    TextFolderMethodDebug("TextFolder","TextFolderwps_wpFilterPopupMenu");

    ulFlags = parent_wpFilterPopupMenu(somSelf,ulFlags,hwndCnr,fMultiSelect);

    /* Remove the tree view menu option and make sure delete is available */
    return ( ( ulFlags | CTXT_DELETE) & ~CTXT_TREE );
}


[Back: wpFilterPopupMenu - Related Methods]
[Next: wpFilterPopupMenu - Topics]