Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0ee85f8

Browse files
author
Hiroshi Inoue
committed
Change dialog windows.
1 parent9abd055 commit0ee85f8

File tree

2 files changed

+19
-20
lines changed

2 files changed

+19
-20
lines changed

‎src/interfaces/odbc/dlg_specific.c

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -243,26 +243,25 @@ driver_optionsProc(HWND hdlg,
243243
caseWM_INITDIALOG:
244244
SetWindowLong(hdlg,DWL_USER,lParam);/* save for OK etc */
245245
ci= (ConnInfo*)lParam;
246+
CheckDlgButton(hdlg,DRV_OR_DSN,0);
246247
if (ci&&ci->dsn&&ci->dsn[0])
247248
{
248-
SetWindowText(hdlg,"Advanced Options (Common)");
249-
driver_optionsDraw(hdlg,NULL,0, TRUE);
249+
SetWindowText(hdlg,"Advanced Options (per DSN)");
250250
}
251251
else
252252
{
253-
CheckDlgButton(hdlg,DRV_OR_DSN,1);
254253
SetWindowText(hdlg,"Advanced Options (Connection)");
255254
ShowWindow(GetDlgItem(hdlg,DRV_OR_DSN),SW_HIDE);
256-
driver_optionsDraw(hdlg,ci,1, FALSE);
257255
}
256+
driver_optionsDraw(hdlg,ci,1, FALSE);
258257
break;
259258

260259
caseWM_COMMAND:
261260
switch (GET_WM_COMMAND_ID(wParam,lParam))
262261
{
263262
caseIDOK:
264263
ci= (ConnInfo*)GetWindowLong(hdlg,DWL_USER);
265-
driver_options_update(hdlg,IsDlgButtonChecked(hdlg,DRV_OR_DSN) ?ci :NULL,
264+
driver_options_update(hdlg,IsDlgButtonChecked(hdlg,DRV_OR_DSN) ?NULL :ci,
266265
ci&&ci->dsn&&ci->dsn[0]);
267266

268267
caseIDCANCEL:
@@ -271,12 +270,12 @@ driver_optionsProc(HWND hdlg,
271270

272271
caseIDDEFAULTS:
273272
if (IsDlgButtonChecked(hdlg,DRV_OR_DSN))
273+
driver_optionsDraw(hdlg,NULL,2, TRUE);
274+
else
274275
{
275276
ConnInfo*ci= (ConnInfo*)GetWindowLong(hdlg,DWL_USER);
276277
driver_optionsDraw(hdlg,ci,0, FALSE);
277278
}
278-
else
279-
driver_optionsDraw(hdlg,NULL,2, TRUE);
280279
break;
281280

282281
caseDRV_OR_DSN:
@@ -285,14 +284,14 @@ driver_optionsProc(HWND hdlg,
285284
mylog("DRV_OR_DSN clicked\n");
286285
if (IsDlgButtonChecked(hdlg,DRV_OR_DSN))
287286
{
288-
ConnInfo*ci= (ConnInfo*)GetWindowLong(hdlg,DWL_USER);
289-
SetWindowText(hdlg,"Advanced Options (per DSN)");
290-
driver_optionsDraw(hdlg,ci,ci ?1 :0,ci==NULL);
287+
SetWindowText(hdlg,"Advanced Options (Common)");
288+
driver_optionsDraw(hdlg,NULL,0, TRUE);
291289
}
292290
else
293291
{
294-
SetWindowText(hdlg,"Advanced Options (Common)");
295-
driver_optionsDraw(hdlg,NULL,0, TRUE);
292+
ConnInfo*ci= (ConnInfo*)GetWindowLong(hdlg,DWL_USER);
293+
SetWindowText(hdlg,"Advanced Options (per DSN)");
294+
driver_optionsDraw(hdlg,ci,ci ?1 :0,ci==NULL);
296295
}
297296
}
298297
break;

‎src/interfaces/odbc/psqlodbc.rc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ BEGIN
132132
EDITTEXT DRV_CONNSETTINGS,61,165,225,25,ES_MULTILINE |
133133
ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_WANTRETURN
134134
DEFPUSHBUTTON "OK",IDOK,59,201,50,14,WS_GROUP
135-
PUSHBUTTON "Cancel",IDCANCEL,129,201,50,14
136-
PUSHBUTTON "Defaults",IDDEFAULTS,199,201,50,15
137-
CONTROL "DSN",DRV_OR_DSN,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT |
138-
BS_NOTIFY | WS_TABSTOP,243,208,30,10
135+
PUSHBUTTON "Cancel",IDCANCEL,124,201,50,14
136+
PUSHBUTTON "Defaults",IDDEFAULTS,189,201,50,15
137+
CONTROL "Common",DRV_OR_DSN,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT |
138+
BS_NOTIFY | WS_TABSTOP,233,208,40,10
139139
END
140140

141141
DLG_OPTIONS_DS DIALOG DISCARDABLE 0, 0, 267, 161
@@ -249,10 +249,10 @@ BEGIN
249249
EDITTEXT DRV_CONNSETTINGS,50,185,225,25,ES_MULTILINE |
250250
ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_WANTRETURN
251251
DEFPUSHBUTTON "OK",IDOK,45,220,50,14,WS_GROUP
252-
PUSHBUTTON "Cancel",IDCANCEL,115,220,50,14
253-
PUSHBUTTON "Defaults",IDDEFAULTS,185,220,50,15
254-
CONTROL "DSN",DRV_OR_DSN,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT |
255-
BS_NOTIFY | WS_TABSTOP,243,224,30,10
252+
PUSHBUTTON "Cancel",IDCANCEL,110,220,50,14
253+
PUSHBUTTON "Defaults",IDDEFAULTS,175,220,50,15
254+
CONTROL "Common",DRV_OR_DSN,"Button",BS_AUTOCHECKBOX | BS_LEFTTEXT |
255+
BS_NOTIFY | WS_TABSTOP,233,224,40,10
256256
END
257257

258258
DLG_OPTIONS_DS DIALOG DISCARDABLE 0, 0, 267, 161

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp