(Gast)
n/a Beiträge
|
AW: Menu Ownerdraw
7. Mär 2019, 13:32
Wo kommt denn der Wert für hToolbar in procedure TSkinOpenSaveDialog.ToolBarSubClassProc(var Message: TMessage); her?
Delphi-Quellcode:
hToolbar := FindWindowEx(hMain, 0, 'ToolBarWindow32', nil);
GetWindowRect(hToolbar, rc);
lpt.x := rc.Left;
lpt.y := rc.Top;
ScreenToClient(hMain, lpt);
MoveWindow(hToolbar, lpt.x, lpt.y, (rc.Right - rc.Left) + 3, rc.Bottom - rc.Top, false);
ExStyle := GetWindowLongPtr(hToolbar, GWL_EXSTYLE);
ExStyle := ExStyle or WS_EX_TRANSPARENT;
SetWindowLongPtr(hToolbar, GWL_EXSTYLE, ExStyle);
ToolBarSubClass(hToolbar);
hMain = Handle der Class #32700 Dialog Box
gruss
Geändert von EWeiss ( 7. Mär 2019 um 13:37 Uhr)
|
|
Zitat
|