Page 2 of 2

Re: VirtualMode & MySQL

Posted: 17 Oct 2013, 11:03
by engee30
It's me again. :D
Is it true that while working in VirtualMode, there's no Unicode support? I've got some other stuff in the db which doesn't show properly. I just tried the same stuff in the normal mode and it's fine there.

Regards,
Pete

Re: VirtualMode & MySQL

Posted: 17 Oct 2013, 15:28
by TiKu
There is Unicode support in virtual mode, but you need to make the native list view believe that it is used inside a Unicode window so that it sends Unicode notification messages. I'll provide a sample project tonight or tomorrow.

Re: VirtualMode & MySQL

Posted: 17 Oct 2013, 18:22
by engee30
Oh that'd be great. I wouldn't have a clue how to do that. :(

Re: VirtualMode & MySQL

Posted: 17 Oct 2013, 20:34
by TiKu
See the attached file. Basically you need to subclass the list view's parent window (in this case it is the Form) and intercept the WM_NOTIFYFORMAT message. The native list view sends this message to its parent window. The response to this message decides how the list view will communicate with its parent window: ANSI or Unicode.
Some of ExplorerListView's events require this communication to use Unicode, otherwise the events won't support Unicode. The ItemGetDisplayInfo event is one of those events.

Regards
TiKu

Re: VirtualMode & MySQL

Posted: 17 Oct 2013, 21:54
by engee30
This is it. Another perfect solution did the trick. Cheers, TiKu.
Hopefully, there will be no complex issues with my project. :P

Kind regards,
Pete