Click here to Skip to main content
15,905,323 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Extracting a number from text... Pin
Matt Gullett28-Jan-03 9:31
Matt Gullett28-Jan-03 9:31 
GeneralRe: Extracting a number from text... Pin
Anonymous28-Jan-03 10:21
Anonymous28-Jan-03 10:21 
GeneralRe: Extracting a number from text... Pin
Matt Gullett28-Jan-03 10:44
Matt Gullett28-Jan-03 10:44 
GeneralList View column formatting Pin
Brigg Thorp28-Jan-03 7:55
Brigg Thorp28-Jan-03 7:55 
GeneralRe: List View column formatting Pin
Roger Allen29-Jan-03 1:18
Roger Allen29-Jan-03 1:18 
GeneralTray Icon Pin
progman28-Jan-03 7:52
progman28-Jan-03 7:52 
GeneralRe: Tray Icon Pin
Abbas_Riazi28-Jan-03 18:13
professionalAbbas_Riazi28-Jan-03 18:13 
Generalsubsubmenu flyouts.... Pin
ns28-Jan-03 6:56
ns28-Jan-03 6:56 
My submenus are dynamic.
I think I understand the concept of setting up an WM_MENUCOMMAND handler for the submenu of a toplevel menu which I will make suitable with SetMenuInfo (NOTIFYBYPOS). I want to notify by the index of the submenu item pressed. Fine. Now if I press on item 1 " SubMenu 1" , index 0, a flyout I'd created at the same time (CreatePopup)as I was creating "SUbMenu 1" dynamically , pops out . This has its own list of items.

I want stuff to happen when I press t hese flyout items. Now the toplevel submenu handle needed for SetMenuInfo I can get by GetSUbMenu(). Can I use my same trick for the flyout:

CMenu* submenu = mmenu->GetSubMenu(pos);


except now it will be
subsubmenu = submenu->GetSubMenu(pos)
(after I get the right pos in the submenu?

I cant test it out because I'm beseiged with a zillion problems before I can get to this stage, and dont want to go through the effort if my supposition wont work....
Thanks,

Appreciate your help,
ns
GeneralUsing SetMenuInfo Pin
ns28-Jan-03 6:24
ns28-Jan-03 6:24 
GeneralRe: Using SetMenuInfo Pin
ns28-Jan-03 8:45
ns28-Jan-03 8:45 
GeneralRe: Using SetMenuInfo Pin
Joaquín M López Muñoz28-Jan-03 8:48
Joaquín M López Muñoz28-Jan-03 8:48 
GeneralI think that works.... Pin
ns28-Jan-03 9:13
ns28-Jan-03 9:13 
GeneralRe: I think that works.... Pin
Joaquín M López Muñoz28-Jan-03 9:17
Joaquín M López Muñoz28-Jan-03 9:17 
GeneralRe: I think that works.... Pin
ns28-Jan-03 9:24
ns28-Jan-03 9:24 
GeneralRe: I think that works.... Pin
Joaquín M López Muñoz28-Jan-03 9:26
Joaquín M López Muñoz28-Jan-03 9:26 
GeneralRe: I think that works.... Pin
ns28-Jan-03 9:40
ns28-Jan-03 9:40 
GeneralRe: I think that works.... Pin
Joaquín M López Muñoz28-Jan-03 9:47
Joaquín M López Muñoz28-Jan-03 9:47 
GeneralRe: I think that works.... Pin
ns28-Jan-03 9:45
ns28-Jan-03 9:45 
GeneralRe: I think that works.... Pin
ns28-Jan-03 9:50
ns28-Jan-03 9:50 
GeneralThe SDK in question.... Pin
ns28-Jan-03 10:47
ns28-Jan-03 10:47 
GeneralRe: The SDK in question.... Pin
Michael Dunn28-Jan-03 15:49
sitebuilderMichael Dunn28-Jan-03 15:49 
GeneralOpenDocumentFile Pin
Dov Sherman28-Jan-03 6:25
Dov Sherman28-Jan-03 6:25 
GeneralRe: OpenDocumentFile Pin
Roger Allen29-Jan-03 1:35
Roger Allen29-Jan-03 1:35 
GeneralRe: OpenDocumentFile Pin
Dov Sherman29-Jan-03 6:40
Dov Sherman29-Jan-03 6:40 
GeneralOnPaint( ) -- how do I Pin
john john mackey28-Jan-03 5:31
john john mackey28-Jan-03 5:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.