• Advertisement
Sign in to follow this  

Win32 - Create small menu on left click.

This topic is 4325 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm making a sudoku solver and right now I'm trying to implement more user features. I want to have a small menu or something come up when the user clicks in a square. http://img83.imageshack.us/img83/3369/sudoku16ps.jpg That's basically what I wanted, more or less. <3 MSPaint. If that's too advanced or too difficult (or if no one has any idea), then I'd be happy with a dialog box that pops up and asks them for a number. I can take care of finding out if the number is legal or illegal, I just want the user to be able to enter something. If I can do that I'll be happy, I just have no idea. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
If you don't care for the look of it you can use TrackPopupMenu with a HMENU you obtained from CreatePopupMenu. This will create a menu at a specified position and return the chosen item index if you pass the TPM_RETURNCMD style.

Share this post


Link to post
Share on other sites
That's one method worth looking into. Seems simple according to Petzold's book, but I guess that's a last resort kind of thing :) Thanks mucho.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement