Thread: Creating pop up menus

  1. #16
    Registered User
    Join Date
    Jan 2004
    Posts
    68
    ok i tried it, same result, still can use it limited times, it seems like after a certain number of times windows stops sending the message or soemthing like that

    i am not sure.
    -Ti22-

  2. #17
    Handy Andy andyhunter's Avatar
    Join Date
    Dec 2004
    Posts
    540
    Now do you mean it doesn't show up anymore or that it doesn't do anything when you select something?
    i don't think most standard compilers support programmers with more than 4 red boxes - Misplaced

    It is my sacred duity to stand in the path of the flood of ignorance and blatant stupidity... - quzah

    Such pointless tricks ceased to be interesting or useful when we came down from the trees and started using higher level languages. - Salem

  3. #18
    Handy Andy andyhunter's Avatar
    Join Date
    Dec 2004
    Posts
    540
    Try adding the TPM_RECURSE flag to your TrackPopupMenu call like so:

    Code:
    TrackPopupMenu(hMenu,
                                TPM_LEFTALIGN | TPM_RIGHTBUTTON|TPM_RECURSE,
                                mouse_y,
                                mouse_x,
                                0,
                                hWnd,
                                NULL);
    i don't think most standard compilers support programmers with more than 4 red boxes - Misplaced

    It is my sacred duity to stand in the path of the flood of ignorance and blatant stupidity... - quzah

    Such pointless tricks ceased to be interesting or useful when we came down from the trees and started using higher level languages. - Salem

  4. #19
    Registered User
    Join Date
    Jan 2004
    Posts
    68
    no same results it works like before

    when i start the program up i can use the pop up menu but only limited amount of times and everytime its different how many times i can use it

    but every button in the pop up menu works like it should

    but as i said previously after using the pop up menu a certain time it stops working as in it won't even show up at all.

    I tried the recurse still same results.
    -Ti22-

  5. #20
    Handy Andy andyhunter's Avatar
    Join Date
    Dec 2004
    Posts
    540
    Are you sure mouse_x and mouse_y aren't being changed to something unexpected at some point in time. Have you tried uncommenting out the point.x, point.y and using them in TrackPopupMenu function?

    I can't seem to recreate your problem, that's why I am asking this stuff.
    i don't think most standard compilers support programmers with more than 4 red boxes - Misplaced

    It is my sacred duity to stand in the path of the flood of ignorance and blatant stupidity... - quzah

    Such pointless tricks ceased to be interesting or useful when we came down from the trees and started using higher level languages. - Salem

  6. #21
    Registered User
    Join Date
    Jan 2004
    Posts
    68
    hmm,

    can I send you my code? will that be ok? its for my coursework and the code already does everything the coursework needs but this bug is very annoying.

    I'll PM you with the zip file, pls don't release the code as I need to hand it in
    -Ti22-

  7. #22
    Handy Andy andyhunter's Avatar
    Join Date
    Dec 2004
    Posts
    540
    Wouldn't be a problem at all. I will take a look at it tonight.

    edit - hey the link doesn't work.
    Last edited by andyhunter; 01-18-2005 at 07:01 PM.
    i don't think most standard compilers support programmers with more than 4 red boxes - Misplaced

    It is my sacred duity to stand in the path of the flood of ignorance and blatant stupidity... - quzah

    Such pointless tricks ceased to be interesting or useful when we came down from the trees and started using higher level languages. - Salem

  8. #23
    Registered User
    Join Date
    Jan 2004
    Posts
    68
    hey can u try it again?

    the link should work now.

    Thx
    -Ti22-

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Creating push & pop functions... decrementing/tracking?
    By Sparrowhawk in forum C Programming
    Replies: 22
    Last Post: 12-14-2008, 09:10 PM
  2. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  3. creating menus and other stuff
    By C+noob in forum Windows Programming
    Replies: 4
    Last Post: 07-13-2005, 07:20 PM
  4. Creating menus
    By firestorm in forum C++ Programming
    Replies: 13
    Last Post: 04-06-2005, 11:19 AM
  5. Creating menus
    By jr2007 in forum Windows Programming
    Replies: 4
    Last Post: 10-27-2003, 03:11 PM