- Код: Выделить всё
WNDC.style := 0;
WNDC.lpfnWndProc := @WindowProc;
WNDC.cbClsExtra := 0;
WNDC.cbWndExtra := 0;
WNDC.hInstance := hInstance;
WNDC.hIcon := LoadIcon (0, IDI_APPLICATION);
WNDC.hCursor := LoadIcon (0, IDC_ARROW);
WNDC.hbrBackground := Color_Window + 1;
WNDC.lpszMenuName := nil;
WNDC.lpszClassName := FormClass;
if RegisterClass (WNDC) = 0 then Die (0, 'Error in RegisterClass');
Form := CreateWindowEx (WS_EX_TOPMOST or WS_EX_TOOLWINDOW, FormClass, FormTitle, WS_VISIBLE, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, 0, 0, hInstance, nil);
ShowWindow (Form, SW_SHOWMAXIMIZED);