mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-02-03 21:52:24 +00:00
Use different window procedures for the About box and the Licence box.
Should prevent the version string masking part of the licence text ;-) [originally from svn r51]
This commit is contained in:
parent
485c1f7508
commit
ab681763af
23
windlg.c
23
windlg.c
@ -357,6 +357,27 @@ static int CALLBACK LogProc (HWND hwnd, UINT msg,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int CALLBACK LicenceProc (HWND hwnd, UINT msg,
|
||||||
|
WPARAM wParam, LPARAM lParam) {
|
||||||
|
switch (msg) {
|
||||||
|
case WM_INITDIALOG:
|
||||||
|
return 1;
|
||||||
|
case WM_COMMAND:
|
||||||
|
switch (LOWORD(wParam)) {
|
||||||
|
case IDOK:
|
||||||
|
abtbox = NULL;
|
||||||
|
DestroyWindow (hwnd);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
case WM_CLOSE:
|
||||||
|
abtbox = NULL;
|
||||||
|
DestroyWindow (hwnd);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static int CALLBACK AboutProc (HWND hwnd, UINT msg,
|
static int CALLBACK AboutProc (HWND hwnd, UINT msg,
|
||||||
WPARAM wParam, LPARAM lParam) {
|
WPARAM wParam, LPARAM lParam) {
|
||||||
switch (msg) {
|
switch (msg) {
|
||||||
@ -377,7 +398,7 @@ static int CALLBACK AboutProc (HWND hwnd, UINT msg,
|
|||||||
case IDA_LICENCE:
|
case IDA_LICENCE:
|
||||||
EnableWindow(hwnd, 0);
|
EnableWindow(hwnd, 0);
|
||||||
DialogBox (hinst, MAKEINTRESOURCE(IDD_LICENCEBOX),
|
DialogBox (hinst, MAKEINTRESOURCE(IDD_LICENCEBOX),
|
||||||
NULL, AboutProc);
|
NULL, LicenceProc);
|
||||||
EnableWindow(hwnd, 1);
|
EnableWindow(hwnd, 1);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user