|
-
May 15th, 2000, 04:05 AM
#1
Thread Starter
Hyperactive Member
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
-
May 15th, 2000, 04:43 AM
#2
Frenzied Member
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?
-
May 15th, 2000, 05:40 AM
#3
Thread Starter
Hyperactive Member
Subclassing through a dll written in c. The messages are handled thru vb.
-
May 15th, 2000, 08:59 PM
#4
Thread Starter
Hyperactive Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|