Results 1 to 4 of 4

Thread: Dynamic Menu

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    363
    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

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    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?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    363
    Subclassing through a dll written in c. The messages are handled thru vb.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    363

    Smile

    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.

    Wade

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width