Total Commander Forum Index Total Commander
Форум поддержки пользователей Total Commander
Сайты: Все о Total Commander | Totalcmd.net | Ghisler.com | RU.TCKB
 
 RulesRules   SearchSearch   FAQFAQ   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Определение режима QuickView

 
Post new topic   Reply to topic    Total Commander Forum Index -> Написание плагинов для Total Commander printer-friendly view
View previous topic :: View next topic  
Author Message
Parcan



Joined: 15 Dec 2004
Posts: 398
Location: Russian

Post (Separately) Posted: Fri Mar 25, 2005 18:50    Post subject: Определение режима QuickView Reply with quote

как правильно определить, что листер плагин запускается в режиме QuickView?
я сделал так в функции ListLoad

gp->TypeQuickView = 0;
::GetClassName(::GetParent(ParentWin), BufStr, MAX_LOADSTRING);
if (strcmp(BufStr, "TTOTAL_CMD") == 0) gp->TypeQuickView = 1;

но если Гислера вдруг клинанет переназвать класс, то работать не будет, может есть более надежный способ?
Back to top
View user's profile Send private message
shuriksoft



Joined: 16 Dec 2004
Posts: 42
Location: Ukraine

Post (Separately) Posted: Fri Mar 25, 2005 19:08    Post subject: Reply with quote

могет быть, все гениальное просто ?
Code:

if (GetParent(ParentWin) == 0) {
  // Lister
} else{
  // QuickView
}
Back to top
View user's profile Send private message Yahoo Messenger
SCHMaster



Joined: 15 Dec 2004
Posts: 296
Location: Киев

Post (Separately) Posted: Sat Mar 26, 2005 03:15    Post subject: Reply with quote

shuriksoft
Code:
все гениальное просто

Нь-дя-а-а-а... (это я сам с себя Smile - давно уже юзаю первый спопсоб и совсем не подумал о таком...)
А ведь и правда - "все гениальное просто".
Back to top
View user's profile Send private message
Nik



Joined: 01 Jan 2005
Posts: 583
Location: Киров

Post (Separately) Posted: Sat Mar 26, 2005 19:59    Post subject: Reply with quote

Я в разное время использовал оба способа. Оба работают...
Back to top
View user's profile Send private message
Parcan



Joined: 15 Dec 2004
Posts: 398
Location: Russian

Post (Separately) Posted: Sun Mar 27, 2005 16:16    Post subject: Reply with quote

shuriksoft

да, а ведь я даже видел, что там ноль, но...
тормоз останется тормозом
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Написание плагинов для Total Commander All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group