#include <Gray.h>

Öffentliche Methoden | |
| TGrayDialog (TWindow *parent, TResId resId, int helpNr, int x=-1, int y=-1, TModule *module=0) | |
| void | SetupWindow () |
Geschützte Methoden | |
| void | CmHelpCommon () |
| void | CmErase () |
| virtual bool | DialogFunction (UINT uMsg, WPARAM wParam, LPARAM lParam) |
| DECLARE_RESPONSE_TABLE (TGrayDialog) | |
Geschützte Attribute | |
| int | HelpNr |
| int | X |
| int | Y |
| TPoint | Point |
| TGrayDialog::TGrayDialog | ( | TWindow * | parent, |
| TResId | resId, | ||
| int | helpNr, | ||
| int | x = -1, |
||
| int | y = -1, |
||
| TModule * | module = 0 |
||
| ) |
| void TGrayDialog::CmErase | ( | ) | [protected] |
| void TGrayDialog::CmHelpCommon | ( | ) | [protected] |
| TGrayDialog::DECLARE_RESPONSE_TABLE | ( | TGrayDialog | ) | [protected] |
| bool TGrayDialog::DialogFunction | ( | UINT | uMsg, |
| WPARAM | wParam, | ||
| LPARAM | lParam | ||
| ) | [protected, virtual] |
Definiert in Zeile 89 der Datei Gray.cpp.
Benutzt CM_ACTIVATE, CM_CAW, CM_COMPILE, CM_EXECUTE, CM_HELPCONTEXT, CM_HELPINDEX, CM_HELPONHELP, CM_INDEVPAUSE, CM_OWM, CM_PANIC, CM_ROUTELOAD, CM_ROUTESAVE, CM_SETUP, CM_STOP, CM_TOGGLEACT, CM_TOGGLETS und HlpFile.
{
// Create an array of control identifiers and context identifiers.
const DWORD aHelpIDs[]=
{
CM_ROUTELOAD, IDH_106_115, // Mutabor-Box: "Mode" (Button)
CM_ROUTESAVE, IDH_107_116, // Output filter: "Channel" (Button)
CM_INDEVPAUSE, IDH_104_120, // Input device: "" (Edit)
121, IDH_104_121, // Input device: "" (Edit)
122, IDH_105_122, // Input filter: "" (Edit)
CM_HELPINDEX, IDH_105_123, // Input filter: "" (Edit)
IDM_EDITFILE_DOC, IDH_105_100, // Input filter: "all" (Button)
CM_HELPONHELP, IDH_106_124, // Mutabor-Box: "" (Edit)
//9 IDC_STATICBITMAP1, IDH_105_101, // Input filter: "else" (Button)
IDR_EDIT31, IDH_107_125, // Output filter: "" (Edit)
IDR_EDIT32, IDH_107_126, // Output filter: "" (Edit)
CM_EXECUTE, IDH_105_102, // Input filter: "channel" (Button)
IDA_ROUTE, IDH_105_103, // Input filter: "staff" (Button)
150, IDH_104_150, // Input device: "Löschen" (Button)
CM_COMPILE, IDH_106_104, // Mutabor-Box: "box number" (Button)
151, IDH_105_151, // Input filter: "Löschen" (Button)
CM_ACTIVATE, IDH_106_105, // Mutabor-Box: "GUIDO-File" (Button)
152, IDH_104_152, // Input device: "Durchsuchen" (Button)
CM_STOP, IDH_106_106, // Mutabor-Box: "no Box / thru-mode" (Button)
CM_HELPCONTEXT, IDH_104_130, // Input device: "" (ComboBox)
CM_PANIC, IDH_106_107, // Mutabor-Box: "active" (Button)
CM_OWM, IDH_106_108, // Mutabor-Box: "passive" (Button)
155, IDH_101_155, // Setup: "Windows" (Button)
IDSD_RADIOTS1, IDH_101_156, // Setup: " as &tone system " (Button)
CM_TOGGLETS, IDH_104_110, // Input device: "Type" (Button)
IDSD_RADIOTS2, IDH_101_157, // Setup: " as &relations " (Button)
CM_TOGGLEACT, IDH_104_111, // Input device: "I" (Button)
IDSD_CHECKSE, IDH_101_158, // Setup: " save &editorfiles " (Button)
CM_CAW, IDH_105_112, // Input filter: "Type" (Button)
159, IDH_101_159, // Setup: "Tone system" (Button)
CM_SETUP, IDH_105_113, // Input filter: "Range" (Button)
IDSD_CHECKCB, IDH_101_160, // Setup: " use color bars" (Button)
114, IDH_106_114, // Mutabor-Box: "Box" (Button)
// IDR_EDIT31, IDR_EDIT31_H,
// IDR_EDIT32, IDR_EDIT32_H,
IDR_CHECKBOX31, IDR_CHECKBOX31_H,
0, 0
};
switch (uMsg) {
case WM_HELP:
::WinHelp((HWND)(((LPHELPINFO) lParam)->hItemHandle), HlpFile,
HELP_WM_HELP, (DWORD) (LPSTR) aHelpIDs);
break;
case WM_CONTEXTMENU:
::WinHelp((HWND) wParam, HlpFile, HELP_CONTEXTMENU,
(DWORD) (LPVOID) aHelpIDs);
break;
default:
return TDialog::DialogFunction(uMsg, wParam, lParam);
}
return FALSE;
}
| void TGrayDialog::SetupWindow | ( | ) |
Definiert in Zeile 30 der Datei Gray.cpp.
{
TDialog::SetupWindow();
HWND desk = GetDesktopWindow();
if ( desk )
{
TRect R;
::GetClientRect(desk, &R);
if ( Y == -1 )
{
TWindow::Attr.X = (R.right - TWindow::Attr.W) / 2;
TWindow::Attr.Y = (R.bottom - TWindow::Attr.H) / 2;
}
else
{
TPoint p = TPoint(X,Y);
Parent->ClientToScreen(p);
TWindow::Attr.X = p.x +10;
TWindow::Attr.Y = p.y + 10;
}
if ( TWindow::Attr.X+TWindow::Attr.W > R.right )
TWindow::Attr.X = R.right-TWindow::Attr.W;
if ( TWindow::Attr.Y+TWindow::Attr.H+H_TASKBAR > R.bottom )
TWindow::Attr.Y = R.bottom-TWindow::Attr.H-H_TASKBAR;
if ( TWindow::Attr.X < 0 )
TWindow::Attr.X = 0;
if ( TWindow::Attr.Y < 0 )
TWindow::Attr.Y = 0;
}
MoveWindow(TWindow::Attr.X, TWindow::Attr.Y,
TWindow::Attr.W, TWindow::Attr.H, false);
}
int TGrayDialog::HelpNr [protected] |
Definiert in Zeile 16 der Datei Gray.h.
Wird benutzt von CmHelpCommon().
TPoint TGrayDialog::Point [protected] |
int TGrayDialog::X [protected] |
Definiert in Zeile 16 der Datei Gray.h.
Wird benutzt von SetupWindow().
int TGrayDialog::Y [protected] |
Definiert in Zeile 16 der Datei Gray.h.
Wird benutzt von SetupWindow().
1.7.4