Skal virksomheder stå stærkere mod angreb og kunne udvikle sig, skal sikkerhed, drift og forretning tænkes sammen. Det er tanken bag Jysk IT’s ambition om at skabe en “sikker fremtid” for kunderne.
måske kan du bruge nedenstående . ellers er det som snowball skriver
god weekend.
unit ExMessageBox;
interface
uses Windows, forms, ShellApi, dialogs;
function PRIMARYLANGID(lgid : Word) : LongInt; function SUBLANGID(lgid : Word) : LongInt; function MAKELANGID(sPrimaryLanguage : Word; sSubLanguage : Word) : Word;
function MessageDlgEx(Text, Titel : string; msgType : integer) : integer; function ShowQuestion(Text, Titel : string) : integer; function ShowWarning(Text,Titel : string) : integer;
implementation
function PRIMARYLANGID(lgid : Word) : LongInt; begin result := lgid and $3FF; end;
function SUBLANGID(lgid : Word) : LongInt; begin result := lgid shr 0; end;
function MAKELANGID(sPrimaryLanguage : Word; sSubLanguage : Word) : Word; begin result := (sSubLanguage shl 0) or sPrimaryLanguage; end;
function MessageDlgEx(Text, Titel : string; msgType : integer) : integer; begin Result := MessageBoxEx(Application.Handle , pChar(Text), pChar(Titel), MsgType,MAKELANGID(LANG_DANISH, SUBLANG_DEFAULT)); end;
function ShowQuestion(Text, Titel : string) : integer; begin MessageDlgEx(Text,Titel,MB_ICONQUESTION); end;
function ShowWarning(Text, Titel : string) : integer; begin MessageDlgEx(Text,Titel,MB_ICONWARNING); end
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.