Registriert seit: 16. Sep 2006
256 Beiträge
Delphi 7 Personal
|
Re: MpuAboutWnd
8. Jan 2007, 00:05
Ich hab' eine Einstellung gefunden, die für 3 zeilenlange File-Descriptions wie ich finde schöne Ergebnisse liefert (siehe Anhang).
Delphi-Quellcode:
const
WINDOWWIDTH = 300;
WINDOWHEIGHT = 224;
// product name
CreateWindowEx(0, ' STATIC', ' ', WS_CHILD or WS_VISIBLE or SS_CENTER, 17, 10, 285, 24, hWnd, ID_STC_PRODUCTNAME,
HInstance, nil);
// description, version and copyright
CreateWindowEx(0, ' STATIC', ' ', WS_CHILD or WS_VISIBLE or SS_CENTER, 10, 44, 280, 130, hWnd, ID_STC_DESCRIPTION,
HInstance, nil);
// "Link" static
CreateWindowEx(0, ' STATIC', PCHar( URI), WS_CHILD or WS_VISIBLE or SS_NOTIFY or SS_CENTER, 5, 135, 285, 15, hWnd,
ID_STC_WEB, HInstance, nil);
// devider
CreateWindowEx(0, ' STATIC', ' ', WS_CHILD or WS_VISIBLE or SS_SUNKEN, 0, 128, 300, 8, hWnd, 0, HInstance, nil);
// OK button
CreateWindowEx(0, ' BUTTON', ' OK', WS_CHILD or WS_VISIBLE or BS_DEFPUSHBUTTON, 210, 155, 75, 24, hWnd,
ID_BTN_OK, HInstance, nil);
|