Zero008 Posted December 3, 2005 Report Share Posted December 3, 2005 I guess this is not the quite the right forum for this, but because I don't know any better site where I can get FS programming support and my program also uses FSUIPC, I'll try it here: So, I have a working program running as a standalone exe-file. Now I'ld like to inlcude that program into the FS2004 as a module. The first problem I have is that I don't know how to add a new entry into the FS-Menu. I know some Win-API and in my opinion I need the name of the menu-handle. Am I right with that or do I need to do it a different way ? Link to comment Share on other sites More sharing options...
Pete Dowson Posted December 3, 2005 Report Share Posted December 3, 2005 So, I have a working program running as a standalone exe-file. Now I'ld like to inlcude that program into the FS2004 as a module. Are you really sure you want to take that route? If it works through FSUIPC then it also works through WideFS and so can be used on Networked PCs. This is a big advantage of external programs, and the only reason I don't use FSNavigator at all -- that is an FS Module and cannot be run on other PCs. The first problem I have is that I don't know how to add a new entry into the FS-Menu. If that's the first problem, then you must already have worked out how to make your program into an FS Module? There are facilities provided in FSUIPC for programs or modules to add an entry to the Modules menu. If that is not sufficient you have to start doing things like subclassing the FS window procedure and adding your stuff to FS's menu every time it is redrawn. It gets quite complicated. I know some Win-API and in my opinion I need the name of the menu-handle. There's no such thing as a "name of a menu handle". Menus have handles, and you get them by "GetMenu". But the problem in FS is that, unless the user has opted to have the menu displayed all the time (most distracting), it doesn't actually exist. In its so-called "hidden" state in fact it doesn't exist. It is rebuilt from scratch each time it is called up. You have to detect this and add your entries every time. Regards, Pete Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now