maxiaofeng 发表于 2014-12-16 13:55:06

求指点 labwindows 做右键菜单

我是照着8.5中的例子做的但是报错 NON-FATAL RUN-TIME ERROR:   "IETM.c", line 111, col 23, thread id 0x0000084C:   Library function error (return value == -139 ). Controls of the type passed do not have a menu
下面是我在main中的代码menuIDSeparator = NewCtrlMenuSeparator (panelHandle, TABPANEL_TREE, -1);    menuIDBold = NewCtrlMenuItem (panelHandle, TABPANEL_TREE, "Make Label Bold", -1, MakeLabelBold, 0);
        NewCtrlMenuItem (panelHandle, TABPANEL_TREE, "新建", -1, Newitem, 0);
    NewCtrlMenuItem (panelHandle, TABPANEL_TREE, "Underline Label", -1, UnderlineLabel, 0);
    NewCtrlMenuItem (panelHandle, TABPANEL_TREE, "Color Label Red", -1, ColorLabelRed, 0);




页: [1]
查看完整版本: 求指点 labwindows 做右键菜单