Strange change dir with WM_COPYDATA behaviour

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Strange change dir with WM_COPYDATA behaviour

Post by *MVV »

When I send to TC WM_COPYDATA message with CD command TC changes current folder but keeps focused item index... E.g. if I have third item focused, after sending WM_COPYDATA TC will change folder and will focus its third item instead of moving focus to "..".

I send this message using SendMessage in new thread created by CreateThread when user executes CD command in my VirtualPanel plugin's folder.

Here sample ANSI data:

Code: Select all

COPYDATASTRUCT::cbData=14
COPYDATASTRUCT::lpData points to block: 63 3A 5C 57 49 4E 44 4F 57 53 0D 00 53 00
(i.e. string "c:\WINDOWS\r\0S\0")

Here sample UTF-8 data:

Code: Select all

COPYDATASTRUCT::cbData=17
COPYDATASTRUCT::lpData points to block: EF BB BF 63 3A 5C 57 49 4E 44 4F 57 53 0D 00 53 00
(i.e. string "\xEF\xBB\xBFc:\WINDOWS\r\0S\0")

I'm sorry if it isn't a TC bug but my mistake - it is very strange since I can't change focused item index using WM_COPYDATA message.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I will check that - I agree that the cursor position shoudn't be maintained in this case...
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Thank you, in TC 7.55b1 works as expected.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks!
Author of Total Commander
https://www.ghisler.com
Post Reply