Click here to Skip to main content
15,886,788 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSTL & List Control Pin
Derek Price22-May-01 4:25
Derek Price22-May-01 4:25 
GeneralWorkspace setup Pin
Roger22-May-01 4:07
Roger22-May-01 4:07 
GeneralVSS and C++ automation Pin
22-May-01 2:42
suss22-May-01 2:42 
Generalclicking on a listbox created in runtime over an edit control in a formview Pin
22-May-01 2:23
suss22-May-01 2:23 
GeneralRe: clicking on a listbox created in runtime over an edit control in a formview Pin
l a u r e n22-May-01 23:40
l a u r e n22-May-01 23:40 
GeneralDirectory Selection using File Dialog Pin
22-May-01 2:13
suss22-May-01 2:13 
GeneralRe: Directory Selection using File Dialog Pin
Tomasz Sowinski22-May-01 2:18
Tomasz Sowinski22-May-01 2:18 
GeneralAdding a new popup menu Pin
Bartek22-May-01 1:06
Bartek22-May-01 1:06 
Hi,

If you look on the menu of InternetExplorer:
FILE | SEND -> here you get a popup menu

i need to do the same but do not know how Cry | :((

m_menu.LoadMenu(IDR_MENU1);
SetMenu(&m_menu);

CMenu* pContextMenu;
//Get sub menu - index 0
pContextMenu = m_menu.GetSubMenu(0);

pContextMenu->AppendMenu(MF_STRING | MF_POPUP, ID_MENU_ADD, "NEW ITEM");

pContextMenu->AppendMenu(MF_STRING | MF_CHECKED, 5001, "NEW ITEM2");

this code will add two new items under the first position in my IDR_MENU1.
How can add new items to position "NEW ITEM2" ?

thank you
GeneralRe: Adding a new popup menu Pin
Christian Graus22-May-01 1:47
protectorChristian Graus22-May-01 1:47 
GeneralRe: Adding a new popup menu Pin
Bartek22-May-01 2:22
Bartek22-May-01 2:22 
Generalactivex Pin
eXplodus21-May-01 23:56
eXplodus21-May-01 23:56 
GeneralEnterbutton Pin
21-May-01 23:31
suss21-May-01 23:31 
GeneralRe: Enterbutton Pin
22-May-01 5:41
suss22-May-01 5:41 
GeneralRe: Enterbutton Pin
22-May-01 20:51
suss22-May-01 20:51 
GeneralADO Parameters Pin
Richard Hudson21-May-01 22:46
Richard Hudson21-May-01 22:46 
GeneralRe: ADO Parameters Pin
John M. Drescher22-May-01 9:31
John M. Drescher22-May-01 9:31 
GeneralRe: ADO Parameters Pin
Carlos Antollini22-May-01 9:40
Carlos Antollini22-May-01 9:40 
GeneralDateTime Class Pin
Gerry21-May-01 22:24
Gerry21-May-01 22:24 
GeneralHELP !!! fit size of dialod window to various resolutions Pin
21-May-01 21:48
suss21-May-01 21:48 
GeneralRe: HELP !!! fit size of dialod window to various resolutions Pin
Christian Graus21-May-01 23:27
protectorChristian Graus21-May-01 23:27 
GeneralRe: HELP !!! fit size of dialod window to various resolutions Pin
22-May-01 0:01
suss22-May-01 0:01 
GeneralRe: HELP !!! fit size of dialod window to various resolutions Pin
Christian Graus22-May-01 0:09
protectorChristian Graus22-May-01 0:09 
GeneralRe: HELP !!! fit size of dialod window to various resolutions Pin
22-May-01 3:05
suss22-May-01 3:05 
GeneralRe: HELP !!! fit size of dialod window to various resolutions Pin
Christian Graus22-May-01 3:29
protectorChristian Graus22-May-01 3:29 
QuestionHow can I read data from EXEL file? Pin
21-May-01 21:00
suss21-May-01 21:00 

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.