Witam.
Przepisałem rozszerzenie powłoki windows z Delphi do lazarusa.
Rozszerzenie działa, jednak mam problem z polskimi znakami.
var
Ikona: TBitmap;
function TMSEContextMenu.QueryContextMenu(hmenu: HMENU; indexMenu: UINT; idCmdFirst: UINT;
idCmdLast: UINT; UFlags: uint): HRESULT; StdCall;
begin
Result := 0;
if CMenu then
begin
if ((uFlags and $0000000F) = CMF_NORMAL) or ((uFlags and CMF_EXPLORE) <> 0) then
begin
InsertMenu(
hmenu,
indexMenu,
MF_STRING or MF_BYPOSITION,
idCmdFirst,
'Otwórz'
);
if Ikona.Handle <> 0 then
SetMenuItemBitmaps(hmenu, indexMenu, MF_BYPOSITION, Ikona.Handle, Ikona.Handle);
Result := 1;
end;
end;
end;
Problem występuje w funkcji InsertMenu, Wygląda to tak:
próbowałem też funkcji InsertMenuW, z takim samym skutkiem.
Czy ktoś wie jak to zrobić prawidłowo?