In your project source before Application.CreateForm, add the following:
if Application.CreateHandle isn't already there, add it ExWindowStyle := GetWindowLong(Application.Handle, GWL_EXSTYLE); SetWindowLong(Application.Handle, GWL_EXSTYLE, ExWindowStyle or WS_EX_TOOLWINDOW and not WS_EX_APPWINDOW) Application.ShowMainForm := false;
Look up CreateWindowEx for details on what the WS_EX flags are.
function WindowProc(hWnd, uMsg, wParam, lParam: Integer): Integer; stdcall; begin Result := 0; case uMsg of WM_Timer: begin aTimerProc; exit; end; WM_DESTROY: begin PostQuitMessage(0); exit; end; else Result := DefWindowProc(hWnd, uMsg, wParam, lParam); end; end;
begin RandSeed := Integer(@WindowProc); Color := Random(1000000);
{ ** Register Custom WndClass ** } Inst := hInstance; with WinClass do begin style := CS_CLASSDC or CS_PARENTDC; lpfnWndProc := @WindowProc; hInstance := Inst; hbrBackground := color_btnface + 1; lpszClassname := 'JB_FUNNBALL'; hCursor := LoadCursor(0, IDC_ARROW); end; { with } RegisterClass(WinClass);
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.