Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Open Reality / OR use MFC dialog
  RSS 2.0 ATOM  

OR use MFC dialog
Rate this thread
 
23099
 
Permlink of this thread  
avatar
  • chindy
  • Posted: 21 February 2009 05:17 AM
  • Total Posts: 16
  • Joined: 21 February 2009 11:37 AM

Hi All:
I am a new girl game programmer come from China. ^.^

Here I use VS 2005, I want to realize a plug-in.

For this plug-in:
- Has a complex UI design.
- Click one button of a dialog, Pop up another complex dialog. ( I know I should setting the UI also in my FBTool class )
- Get the window handle of Motion Builder, I don’t know how to get it in OR, maybe I should use MFC ,etc.  HWND hWnd = AfxGetApp()->m_pMainWnd->GetSafeHwnd().

I can’t find the visual design Tool for OR, Can I use MFC in OR plug-in project, use CDialog and drag the buttons or other controls to the dialog, do not need to write the control pos info by hand.

The problem is I do not find the way to do it .  : (

Thank you very much. Any advice is welcome....



Replies: 0
avatar
  • Neill3d
  • Posted: 21 February 2009 03:19 PM

Hi chindy,

> about window handle to Motion Builder…
I do it in this manner
...
EnumWindows( EnumProc, 0 );
...
BOOL CALLBACK EnumProc( HWND hwnd, LPARAM lParam )
{
char szTitle[MAX_PATH];
GetWindowText( hwnd, szTitle, MAX_PATH );

if (strstr( szTitle, “MotionBuilder “ ) != NULL)
{
// hold hwnd as the handle of the MotionBuilder

return false;
}

return true;
}
...

> complex UI design…
I working on the ui builder tool for MotionBuilder and I will submit it very soon )

>- Click one button of a dialog, Pop up another complex dialog.
The another complex dialog will be another tool or the same tool?



Replies: 0
avatar
  • chindy
  • Posted: 22 February 2009 10:05 PM

Thank you Neill.Solow :)

> the window handle of Motion Builder

I think you give a good way. but if there are two instance of MotionBuilder , which handle the callback function get??

> Pop up another complex dialog

In the same tool, I know I can use FBPopup to do that, but also have to setting the UI in main FBTool, :(



Replies: 0
avatar
  • chindy
  • Posted: 22 February 2009 10:14 PM

So you means,

I can use MFC CDialog to replace the FBLayout.



Replies: 0
avatar
  • Neill3d
  • Posted: 23 February 2009 04:35 AM

chindy 23 February 2009 01:14 AM

So you means,

I can use MFC CDialog to replace the FBLayout.

I quess, you cannot use mfc.



Replies: 0
avatar
  • Neill3d
  • Posted: 23 February 2009 08:05 AM

I have uploaded beta of the UI builder. If you interested, you can find it here http://neill3d.com/ui-builder-for-motionbuilder



Replies: 0
avatar
  • chindy
  • Posted: 23 February 2009 08:39 PM

Oh, That’s great !!

Is there MotionBuilder7.5 uiBuilder version?



Replies: 0
avatar
  • Neill3d
  • Posted: 24 February 2009 04:44 PM

I have uploaded uibuilder for MoBu 7.5 ext.2



Replies: 0