API Question Get the name/title of an open MFD

dgatsoulis

ele2png user
Donator
Joined
Dec 2, 2009
Messages
1,924
Reaction score
340
Points
98
Location
Sparta
I am trying to get the name/title of an open mfd.
I can get the mode by oapiGetMFDMode and that works for the 10 built-in mfds because they are always in the same order but I am looking for a way to get the title of any MFD.
I looked at oapiGetMFDModeSpecEx but according to the API, it does the opposite of what I want.

OAPIFUNC int oapiGetMFDModeSpecEx ( char * name, MFDMODESPECEX ** spec = 0 )
Returns the mode identifier and spec for an MFD mode defined by its name.

In this case I want to enter the mode and retrieve the name, so is there a way to do this?
 
Top