CGTalk > Software > Autodesk 3ds max > 3dsMax SDK and MaxScript
Login register
Thread Closed share thread « Previous Thread | Next Thread »
 
Thread Tools Search this Thread Display Modes
Old 02-04-2013, 04:47 PM   #31
denisT
MAX Doctor
 
denisT's Avatar
portfolio
Denis Trofimov
CA, USA
 
Join Date: Jul 2009
Posts: 9,510
Send a message via ICQ to denisT
Quote:
Originally Posted by lo
Isn't that what you would expect? I suppose the order of events is something like:

  • create VFB object
  • broadcast preImageViewerDisplay
  • create VFB Window
  • broadcast postImageViewerDisplay

VFB object is already created at the moment of pre event. and this object is IImageViewer. VFBInterface works with it as it IImageViewer. but IImageViewer has method GetHDisplayWindow(). so vfb hwnd has to be known at this moment.



there is a moment between window created and shown which i use to destroy the window
 
Old 02-04-2013, 04:51 PM   #32
denisT
MAX Doctor
 
denisT's Avatar
portfolio
Denis Trofimov
CA, USA
 
Join Date: Jul 2009
Posts: 9,510
Send a message via ICQ to denisT
this is from mxs help:

<IVFB>
.IsVisible : boolean : Read|Write
Get/set the visible state of the Image Viewer.

but you can change vfb visibily only after the PostImageViewerDisplay event



 
Old 02-04-2013, 04:54 PM   #33
lo
the frequentest!
portfolio
Rotem Shiffman
Tel Aviv, Israel
 
Join Date: Jul 2005
Posts: 2,837
Would it have killed them to just include
Code:
<IVFB>.Handle : HWND : Read
 
Old 02-04-2013, 04:57 PM   #34
denisT
MAX Doctor
 
denisT's Avatar
portfolio
Denis Trofimov
CA, USA
 
Join Date: Jul 2009
Posts: 9,510
Send a message via ICQ to denisT
Quote:
Originally Posted by lo
Would it have killed them to just include
Code:
<IVFB>.Handle : HWND : Read

that's a rhetorical question. you know the answer.
 
Old 02-04-2013, 05:48 PM   #35
denisT
MAX Doctor
 
denisT's Avatar
portfolio
Denis Trofimov
CA, USA
 
Join Date: Jul 2009
Posts: 9,510
Send a message via ICQ to denisT
Quote:
Originally Posted by denisT
the interesting fact is that #preImageViewerDisplay event fires before my hooker catches any vfb window message. that means system creates vfb window after the event.

i was wrong. the VFB window is created BEFORE #preImageViewerDisplay fires. it makes sense. it's activates after. i just had to use HCBT_CREATEWND message...
 
Old 02-06-2013, 01:13 AM   #36
JokerMartini
Expert
 
JokerMartini's Avatar
portfolio
John Martini
CG Supervisor, 3D, Maxscript, VFX
Ingenuity Engine
Los Angeles, USA
 
Join Date: Mar 2009
Posts: 1,307
Send a message via AIM to JokerMartini
I leave for a few days and come back to a full fledged conversation of some interesting developments going on!

nice.
__________________
____________ ___ __ _
John A. Martini
JokerMartini@hotmail.com
www.JokerMartini.com
 
Old 02-06-2013, 01:13 AM   #37
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,480
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 01:33 AM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.