Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
0ee85f85
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0ee85f85
编写于
9月 10, 2001
作者:
H
Hiroshi Inoue
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Change dialog windows.
上级
9abd0554
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
19 addition
and
20 deletion
+19
-20
src/interfaces/odbc/dlg_specific.c
src/interfaces/odbc/dlg_specific.c
+11
-12
src/interfaces/odbc/psqlodbc.rc
src/interfaces/odbc/psqlodbc.rc
+8
-8
未找到文件。
src/interfaces/odbc/dlg_specific.c
浏览文件 @
0ee85f85
...
...
@@ -243,18 +243,17 @@ driver_optionsProc(HWND hdlg,
case
WM_INITDIALOG
:
SetWindowLong
(
hdlg
,
DWL_USER
,
lParam
);
/* save for OK etc */
ci
=
(
ConnInfo
*
)
lParam
;
CheckDlgButton
(
hdlg
,
DRV_OR_DSN
,
0
);
if
(
ci
&&
ci
->
dsn
&&
ci
->
dsn
[
0
])
{
SetWindowText
(
hdlg
,
"Advanced Options (Common)"
);
driver_optionsDraw
(
hdlg
,
NULL
,
0
,
TRUE
);
SetWindowText
(
hdlg
,
"Advanced Options (per DSN)"
);
}
else
{
CheckDlgButton
(
hdlg
,
DRV_OR_DSN
,
1
);
SetWindowText
(
hdlg
,
"Advanced Options (Connection)"
);
ShowWindow
(
GetDlgItem
(
hdlg
,
DRV_OR_DSN
),
SW_HIDE
);
driver_optionsDraw
(
hdlg
,
ci
,
1
,
FALSE
);
}
driver_optionsDraw
(
hdlg
,
ci
,
1
,
FALSE
);
break
;
case
WM_COMMAND
:
...
...
@@ -262,7 +261,7 @@ driver_optionsProc(HWND hdlg,
{
case
IDOK
:
ci
=
(
ConnInfo
*
)
GetWindowLong
(
hdlg
,
DWL_USER
);
driver_options_update
(
hdlg
,
IsDlgButtonChecked
(
hdlg
,
DRV_OR_DSN
)
?
ci
:
NULL
,
driver_options_update
(
hdlg
,
IsDlgButtonChecked
(
hdlg
,
DRV_OR_DSN
)
?
NULL
:
ci
,
ci
&&
ci
->
dsn
&&
ci
->
dsn
[
0
]);
case
IDCANCEL
:
...
...
@@ -271,12 +270,12 @@ driver_optionsProc(HWND hdlg,
case
IDDEFAULTS
:
if
(
IsDlgButtonChecked
(
hdlg
,
DRV_OR_DSN
))
driver_optionsDraw
(
hdlg
,
NULL
,
2
,
TRUE
);
else
{
ConnInfo
*
ci
=
(
ConnInfo
*
)
GetWindowLong
(
hdlg
,
DWL_USER
);
driver_optionsDraw
(
hdlg
,
ci
,
0
,
FALSE
);
}
else
driver_optionsDraw
(
hdlg
,
NULL
,
2
,
TRUE
);
break
;
case
DRV_OR_DSN
:
...
...
@@ -285,14 +284,14 @@ driver_optionsProc(HWND hdlg,
mylog
(
"DRV_OR_DSN clicked
\n
"
);
if
(
IsDlgButtonChecked
(
hdlg
,
DRV_OR_DSN
))
{
ConnInfo
*
ci
=
(
ConnInfo
*
)
GetWindowLong
(
hdlg
,
DWL_USER
);
SetWindowText
(
hdlg
,
"Advanced Options (per DSN)"
);
driver_optionsDraw
(
hdlg
,
ci
,
ci
?
1
:
0
,
ci
==
NULL
);
SetWindowText
(
hdlg
,
"Advanced Options (Common)"
);
driver_optionsDraw
(
hdlg
,
NULL
,
0
,
TRUE
);
}
else
{
SetWindowText
(
hdlg
,
"Advanced Options (Common)"
);
driver_optionsDraw
(
hdlg
,
NULL
,
0
,
TRUE
);
ConnInfo
*
ci
=
(
ConnInfo
*
)
GetWindowLong
(
hdlg
,
DWL_USER
);
SetWindowText
(
hdlg
,
"Advanced Options (per DSN)"
);
driver_optionsDraw
(
hdlg
,
ci
,
ci
?
1
:
0
,
ci
==
NULL
);
}
}
break
;
...
...
src/interfaces/odbc/psqlodbc.rc
浏览文件 @
0ee85f85
...
...
@@ -132,10 +132,10 @@ BEGIN
EDITTEXT DRV_CONNSETTINGS,61,165,225,25,ES_MULTILINE |
ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_WANTRETURN
DEFPUSHBUTTON "OK",IDOK,59,201,50,14,WS_GROUP
PUSHBUTTON "Cancel",IDCANCEL,12
9
,201,50,14
PUSHBUTTON "Defaults",IDDEFAULTS,1
9
9,201,50,15
CONTROL "
DSN
",DRV_OR_DSN,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT |
BS_NOTIFY | WS_TABSTOP,2
43,208,3
0,10
PUSHBUTTON "Cancel",IDCANCEL,12
4
,201,50,14
PUSHBUTTON "Defaults",IDDEFAULTS,1
8
9,201,50,15
CONTROL "
Common
",DRV_OR_DSN,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT |
BS_NOTIFY | WS_TABSTOP,2
33,208,4
0,10
END
DLG_OPTIONS_DS DIALOG DISCARDABLE 0, 0, 267, 161
...
...
@@ -249,10 +249,10 @@ BEGIN
EDITTEXT DRV_CONNSETTINGS,50,185,225,25,ES_MULTILINE |
ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_WANTRETURN
DEFPUSHBUTTON "OK",IDOK,45,220,50,14,WS_GROUP
PUSHBUTTON "Cancel",IDCANCEL,11
5
,220,50,14
PUSHBUTTON "Defaults",IDDEFAULTS,1
8
5,220,50,15
CONTROL "
DSN
",DRV_OR_DSN,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT |
BS_NOTIFY | WS_TABSTOP,2
43,224,3
0,10
PUSHBUTTON "Cancel",IDCANCEL,11
0
,220,50,14
PUSHBUTTON "Defaults",IDDEFAULTS,1
7
5,220,50,15
CONTROL "
Common
",DRV_OR_DSN,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT |
BS_NOTIFY | WS_TABSTOP,2
33,224,4
0,10
END
DLG_OPTIONS_DS DIALOG DISCARDABLE 0, 0, 267, 161
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录