我在对话框上获得静态文本控件,右键单击时有一个复制菜单。 复制所选文本时,无法粘贴任何内容。有人说静态文本控件没有复制功能,我用一个编辑控件替换静态文本控件,编辑控件有复制默认值,但仍然没有复制粘贴。有什么问题呢?
下面有编辑控件。
IDD_WZD_ADD_EVENTS DIALOGEX 0, 0, 342, 189
STYLE DS_SETFONT | WS_CHILD | WS_BORDER
FONT 8, "MS Shell Dlg 2", 0, 0, 0x1
BEGIN
LTEXT "&Add events to the list in order of their appearance.",IDC_STATIC,21,1,165,8
LTEXT "How do I add events from Event Viewer?",IDC_EVENT_VIEWER_LINK_HELP,189,1,132,8
LTEXT "&Events: ",IDC_STATIC,21,12,163,8
CONTROL "List1",IDC_LST_EVENTS,"SysListView32",LVS_REPORT | LVS_SHOWSELALWAYS | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP,21,21,278,62
PUSHBUTTON "",IDC_BTN_UP_EVENT,304,21,17,16,BS_ICON
PUSHBUTTON "",IDC_BTN_DOWN_EVENT,304,41,17,16,BS_ICON
PUSHBUTTON "A&dd",IDC_BTN_ADD_EVENT,21,87,50,14
PUSHBUTTON "Re&move",IDC_BTN_REMOVE_EVENT,75,87,49,14
PUSHBUTTON "Edi&t...",IDC_BTN_EDIT_EVENT,128,87,50,14
CONTROL "Any &order",IDC_CHK_ANY_ORDER,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,226,90,73,10
LTEXT "&Rule description:",IDC_STATIC,21,106,300,8
EDITTEXT IDC_STEP_DESCRIPTION,21,114,300,74,ES_AUTOHSCROLL
END