Changeset 156


Ignore:
Timestamp:
Dec 31, 2018, 6:24:53 PM (6 years ago)
Author:
Gregg Young
Message:

Add New widget submenu to xCenter widget context menu.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/common.c

    r151 r156  
    801801    }
    802802#else
     803    plswData->pWidget->pfnwpDefWidgetProc(plswData->pWidget->hwndContextMenu,
     804                                          XCM_ADDWIDGETSMENU,
     805                                          (MPARAM)plswData->pWidget,
     806                                          (MPARAM)plswData->pWidget->hwndContextMenu);
    803807    WinSetPresParam(plswData->pWidget->hwndContextMenu, PP_FONTNAMESIZE, 7,
    804808                    "8.Helv");
  • TabularUnified trunk/widget/xwph/center.h

    r84 r156  
    12851285     ********************************************************************/
    12861286
     1287    // WM_USER + 3 to WM_USER + 10 are reserved
     1288
    12871289    /*
    12881290     *@@ XCM_SETWIDGETSIZE:
     
    14291431    #define XCM_SAVESETUP               (WM_USER + 2)
    14301432
    1431     // WM_USER + 3 to WM_USER + 10 are reserved
     1433
     1434    /*
     1435     *@@ XCM_ADDWIDGETSMENU:
     1436     *      this msg allows widgets that handle the display of their
     1437     *      context menu to add the "Create new widget" submenu.
     1438     *      This message is *sent* by the widget to its _own_ window
     1439     *      so it can be processed by the default widget wndproc.
     1440     *      Alternately, the default wndproc can be called directly
     1441     *      with this msg rather than calling WinSendMessage().
     1442     *
     1443     *      Parameters:
     1444     *
     1445     *      -- PXCENTERWIDGET mp1: pointer to the widget
     1446     *
     1447     *      -- HWND mp2: the context menu's handle
     1448     *
     1449     *      Returns: always returns 0
     1450     *
     1451     */
     1452
     1453    #define XCM_ADDWIDGETSMENU          (WM_USER + 11)
    14321454
    14331455    /* ******************************************************************
Note: See TracChangeset for help on using the changeset viewer.