forked from opsxcq/disassembler-borg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
help.cpp
99 lines (94 loc) · 2.92 KB
/
help.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/************************************************************************
* help.cpp *
* - functions for help dialogs *
************************************************************************/
#include <windows.h>
#include "resource.h"
#include "common.h"
#ifdef __BORLANDC__
#pragma warn -par
#endif
/************************************************************************
* helpshortcuts *
* - the shortcuts help dialog box *
* - simply a text summary of the shortcut keys in Borg *
************************************************************************/
BOOL CALLBACK helpshortcuts(HWND hdwnd,UINT message,WPARAM wParam,LPARAM lParam)
{ switch(message)
{ case WM_COMMAND:
{ switch(wParam)
{ case IDOK:
EndDialog(hdwnd,NULL);
return true;
default:
break;
}
}
break;
case WM_INITDIALOG:
CenterWindow(hdwnd);
SetFocus(GetDlgItem(hdwnd,IDOK));
return false;
default:
break;
}
return false;
}
/************************************************************************
* habox *
* - actually the 'Help -> About' dialog box *
************************************************************************/
BOOL CALLBACK habox(HWND hdwnd,UINT message,WPARAM wParam,LPARAM lParam)
{ switch(message)
{ case WM_COMMAND:
switch(wParam)
{ case idc_email:
ShellExecute(NULL,"open","mailto:[email protected]",NULL,NULL,SW_SHOWNORMAL);
return true;
case idc_website:
ShellExecute(NULL,"open","http://www.cronos.cc/",NULL,NULL,SW_SHOWNORMAL);
return true;
case IDC_BUTTON1:
EndDialog(hdwnd,NULL);
return true;
default:
break;
}
break;
case WM_INITDIALOG:
CenterWindow(hdwnd);
SetFocus(GetDlgItem(hdwnd,IDC_BUTTON1));
return false;
default:
break;
}
return false;
}
/************************************************************************
* helpbox1 *
* - this is a file_open_options help box which gives a few helping *
* hints on the options available. *
************************************************************************/
BOOL CALLBACK helpbox1(HWND hdwnd,UINT message,WPARAM wParam,LPARAM lParam)
{ switch(message)
{ case WM_COMMAND:
{ switch(wParam)
{ case IDOK:
EndDialog(hdwnd,NULL);
return true;
default:
break;
}
}
break;
case WM_INITDIALOG:
CenterWindow(hdwnd);
return false;
default:
break;
}
return false;
}
#ifdef __BORLANDC__
#pragma warn +par
#endif