英语翻译105 DIALOGEX 0,0,280,162STYLE DS_FIXEDSYS | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENUCAPTION ""LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_USFONT 8,"MS Shell Dlg"{CONTROL "",3,BUTTON,BS_PUSHBUTTON | WS_CHILD | WS_GROUP | W

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/16 12:23:57
英语翻译105DIALOGEX0,0,280,162STYLEDS_FIXEDSYS|DS_CENTER|WS_MINIMIZEBOX|WS_POPUP|WS_CAPTION|WS_SYSMENUCA

英语翻译105 DIALOGEX 0,0,280,162STYLE DS_FIXEDSYS | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENUCAPTION ""LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_USFONT 8,"MS Shell Dlg"{CONTROL "",3,BUTTON,BS_PUSHBUTTON | WS_CHILD | WS_GROUP | W
英语翻译
105 DIALOGEX 0,0,280,162
STYLE DS_FIXEDSYS | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION ""
LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US
FONT 8,"MS Shell Dlg"
{
CONTROL "",3,BUTTON,BS_PUSHBUTTON | WS_CHILD | WS_GROUP | WS_TABSTOP,171,142,50,14
CONTROL "",1,BUTTON,BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP,223,142,50,14
CONTROL "",2,BUTTON,BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP,7,142,50,14
CONTROL "",-1,STATIC,SS_ETCHEDHORZ | WS_CHILD | WS_VISIBLE | WS_GROUP,7,138,267,1
CONTROL "",1018,STATIC,SS_BLACKRECT | WS_CHILD | WS_GROUP,7,6,266,130
CONTROL "",1028,STATIC,SS_CENTER | WS_CHILD | WS_VISIBLE | WS_DISABLED | WS_GROUP,59,145,108,8
}
------------------------------------------分割线----------下面另一段----------------------------
106 DIALOGEX 0,0,266,130
STYLE DS_FIXEDSYS | DS_CONTROL | WS_CHILD
CAPTION ""
LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US
FONT 8,"MS Shell Dlg"
{
CONTROL "",1004,"msctls_progress32",WS_CHILD | WS_VISIBLE | WS_BORDER,24,10,241,11
CONTROL "",1006,STATIC,SS_LEFTNOWORDWRAP | SS_NOPREFIX | WS_CHILD | WS_VISIBLE,24,0,241,8
CONTROL "",1016,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_NOCOLUMNHEADER | WS_CHILD | WS_BORDER | WS_TABSTOP,0,25,265,104
CONTROL 103,1031,STATIC,SS_ICON | WS_CHILD | WS_VISIBLE,0,0,22,20
CONTROL "",1027,BUTTON,BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE,0,28,60,14
}

英语翻译105 DIALOGEX 0,0,280,162STYLE DS_FIXEDSYS | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENUCAPTION ""LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_USFONT 8,"MS Shell Dlg"{CONTROL "",3,BUTTON,BS_PUSHBUTTON | WS_CHILD | WS_GROUP | W
这是visual c++的资源文件
DIALOGEX是定义对话框资源的命令
105 DIALOGEX 0,0,280,162
定义一个对话框,资源编号id是105,位置起始在屏幕0,0(可以被风格定义中的center等等覆盖,所以其实这个起始位置有些时候定义了也是白定义),宽和高分别为280和162
STYLE DS_FIXEDSYS | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
定义风格,后面各项都是风格内容,这里用到了6个分别是,系统固定字体(取代系统默认字体),对话框放到屏幕中央,对话框有最小化按钮,弹出窗口风格,有标题,有窗口系统菜单
CAPTION ""
标题为空
LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US
采用英语系的美式英语
FONT 8,"MS Shell Dlg"
采用MS Shell Dlg逻辑字体,大小为8
以下定义对话框中的控件
{
CONTROL "",3,BUTTON,BS_PUSHBUTTON | WS_CHILD | WS_GROUP | WS_TABSTOP,171,142,50,14
控件,控件上的文字,编号,该控件是一个按钮,按钮风格是下压按钮(各风格含义参考msdn文档),位置的xy坐标和宽高.
以下类似
CONTROL "",1,BUTTON,BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP,223,142,50,14
CONTROL "",2,BUTTON,BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP,7,142,50,14
CONTROL "",-1,STATIC,SS_ETCHEDHORZ | WS_CHILD | WS_VISIBLE | WS_GROUP,7,138,267,1
这个是字符串显示,不是按钮了
以下同
CONTROL "",1018,STATIC,SS_BLACKRECT | WS_CHILD | WS_GROUP,7,6,266,130
CONTROL "",1028,STATIC,SS_CENTER | WS_CHILD | WS_VISIBLE | WS_DISABLED | WS_GROUP,59,145,108,8
}
另一段是同样的格式,格式在msdn里面都有详述.只是用到了不同的控件,依次是:
进程条,字符串,列表视图,字符串,按钮.
每个控件的定义语句遵循同样的格式,依次是:
定义控件,文字,编号,控件类型,风格,坐标,大小.