Welcome, Guest. Please login or register.

Author Topic: MUI 3.8 - DisplayHook for Listviews.  (Read 400 times)

Description:

0 Members and 8 Guests are viewing this topic.

Offline futaura

Re: MUI 3.8 - DisplayHook for Listviews.
« on: April 12, 2026, 03:56:32 PM »
You're using MUIV_List_ConstructHook_String and MUIV_List_DestructHook_String, but you are not inserting a single string, you're passing a structure.

So, you need to add proper construct hook which will read your "struct FileAreaEntry", allocate a new "struct FileAreaEntry" and space to hold the string, then copy the strings. Ensure you free everything in the destruct hook.
 

Offline futaura

Re: MUI 3.8 - DisplayHook for Listviews.
« Reply #1 on: April 13, 2026, 11:35:45 AM »
Maybe https://github.com/charabaruk/WookieChat/blob/master/muiclass_windowdccincoming.c

As long as FileAreaEntry contains string pointers only, you'll need to copy each string individually.