VirtualMode & MySQL

The place for threads about TimoSoft ExplorerListView.
engee30
Lt. Commander
Posts: 54
Joined: 25 Sep 2012, 19:49
Location: Swindon, UK
Contact:

Re: VirtualMode & MySQL

Post 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
User avatar
TiKu
Administrator
Administrator
Posts: 832
Joined: 28 Sep 2004, 21:10
Location: München
Contact:

Re: VirtualMode & MySQL

Post 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.
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
engee30
Lt. Commander
Posts: 54
Joined: 25 Sep 2012, 19:49
Location: Swindon, UK
Contact:

Re: VirtualMode & MySQL

Post by engee30 »

Oh that'd be great. I wouldn't have a clue how to do that. :(
User avatar
TiKu
Administrator
Administrator
Posts: 832
Joined: 28 Sep 2004, 21:10
Location: München
Contact:

Re: VirtualMode & MySQL

Post 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
Attachments
lvwDraws.zip
(10.29 KiB) Downloaded 498 times
Crunching for Fab36_Folding-Division at Folding@Home. Join Fab36/Fab30! - Folding@Home and BOINC
Boycott DRM! Boycott HDCP!
engee30
Lt. Commander
Posts: 54
Joined: 25 Sep 2012, 19:49
Location: Swindon, UK
Contact:

Re: VirtualMode & MySQL

Post 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
Post Reply