Results 1 to 2 of 2

Thread: HELP!!

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    363

    Post

    How can I keep Windows from deleting a dynamically created menu that uses SetMenu?? I've read that any menus created with CreateMenu and assigned with SetMenu are automatically deleted upon losing window focus. If you recreate the menu upon recieving focus, the user sees a menu disappear and reappear.

    I've tried using InsertMenuItem without SetMenu, but this only works if you first create a menu at design-time with at least one menu and then step through the code. If you don't step through, it deletes it that way also.
    Original question and some pretty cool code
    Thanks,
    Wade

    Edited by WadeD on 03-15-2000 at 04:58 PM

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    363

    Post

    Is there a way to prevent the form from refreshing from the time it receives focus again until the menu is recreated??

    Thanks,
    Wade

    Edited by WadeD on 03-15-2000 at 05:00 PM

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