-
Hi, I'm trying (unsuccessfully so far :( )to add a menu to a foreign window which doesn't have a menu. I know the syntax is right because I can add the same exact menu to other progs (like Notepad). I checked to see if the window is technically a child window and it's not. That's the only restriction I've read about that disallows new menu creation. Any ideas???
Thanks,
Wade
-
I'll have a look, how are you handling the menu messages BTW, are you managing it in pure VB? or do you have to make some C++ dlls?
-
Subclassing through a dll written in c. The messages are handled thru vb.
-
Thanks for looking Sam, but it works now. Had to do with the window handle. For this particular app (Solomon - middle-line ERP), the norm for getting a handle based on the window's PID gives me a handle that's valid but different from the one I need. Just needed a different routine for getting the window handle. The menus seem to work great now.
:)