Old 09-16-2018, 03:32 PM   #1
doppelganger
Human being with feelings
 
Join Date: Feb 2017
Posts: 69
Default delete

delete

Last edited by doppelganger; 07-16-2020 at 09:47 AM.
doppelganger is offline   Reply With Quote
Old 09-16-2018, 03:37 PM   #2
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

You can do it by iterating over all windows until you find the one that points to the track. This is what SWS does: https://github.com/reaper-oss/sws/bl...Util.cpp#L2887.
cfillion is offline   Reply With Quote
Old 09-18-2018, 04:14 AM   #3
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

I've always found it curious the tracks even have separate HWNDs, it seems like an Reaper internal implementation detail 3rd party developers probably shouldn't rely on...Cockos might at any time decide they no longer want to do it that way for example because it wastes the available window handles.
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Old 09-18-2018, 11:04 AM   #4
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

Quote:
Originally Posted by doppelganger View Post
that's all i need for my use.
Out of curiosity, what do you need it for?
cfillion is offline   Reply With Quote
Old 09-18-2018, 11:49 AM   #5
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

It looks awesome!
cfillion is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:37 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.