Yes but like so I can't add the event handler for the two messages I want. The version is Visual Studio 2008.
blackbondi
Posts
-
Menu Notifications on MFC -
Menu Notifications on MFCI even can't inherit a class from CMenu via ClassWizard, because it isn't listed in the "Base class" combobox
-
Menu Notifications on MFCWhat do you mean with "via ClassWizard"? Creating a class inherited from CMenu? When I tried to adding an event handler to the menu resource via the Event Handler Wizard I only found the messages COMMAND and UPDATE_COMMAND_UI
-
Menu Notifications on MFCI know that, but I didn't find the wrapper (command-handler member function) for these messages in the CMenu class, e.g the command-handler member function for WM_CREATE is OnCreate etc. My idea is to inherit a class from CMenu and add the message handler-functions for these messages, is that correct?
-
Menu Notifications on MFCI want to implement the messages. WM_MENURBUTTONUP WM_MENUDRAG thx
-
Menu Notifications on MFCHi, How can I use these menu notifications on MFC: WM_COMMAND WM_CONTEXTMENU WM_ENTERMENULOOP WM_EXITMENULOOP WM_GETTITLEBARINFOEX WM_MENUCOMMAND WM_MENUDRAG WM_MENUGETOBJECT WM_MENURBUTTONUP WM_NEXTMENU WM_UNINITMENUPOPUP I didn't find anything on the MSDN Library. Can anybody explain me the messaging routing of the menu object? Thx
-
Handling command message for dynamic menuHi, For static menus built during compile time we have to use this macro to map a contiguous range of command IDs to a single message handler function:
ON_COMMAND_RANGE(id1, id2, memberFxn)
But I have a dynamic menu based on database, I use for the item's ID the primary key of the corresponding record. The problem is: I don't know the range of these command IDs, because it's dynamic as I said. Please help me. Thx bondi -
Context menu for menuThank you very much Mark :-D
-
Context menu for menuHi, How can I implement a context menu for a menu. That's mean when I right click on the menu a context menu will appearing. Like the favorite menu of Firefox or IE. Thank you for your help
-
Database vs. RAMthank you for the answer, the database is located on disk, and its a ms access database
-
Database vs. RAMhi, what is better (faster), if i read some information from the database each time i need it? or if i read all the information i need and stock them into an array in the ram and close the connection to the Db. and so i access only that array if it necessary. thx
-
message-handler function for popup menu created at runtimei have to create a popup menu at runtime, the menu's items have the same message-handler function so i can use the ON_COMMAND_RANGE(id1, id2, memberFxn) macro, but i dont know the id-range, because i retrieve it at runtime as said