Click here to Skip to main content
15,909,822 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CHtmlView - trapping the right click when an HT ML page is displayed Pin
BeavisInAz19-Jul-02 5:01
BeavisInAz19-Jul-02 5:01 
Questionhow to hide or remove separator bars in toolbar programmatically? Pin
ns18-Jul-02 10:08
ns18-Jul-02 10:08 
AnswerRe: how to hide or remove separator bars in toolbar programmatically? Pin
Ravi Bhavnani18-Jul-02 10:29
professionalRavi Bhavnani18-Jul-02 10:29 
AnswerRe: how to hide or remove separator bars in toolbar programmatically? Pin
Ravi Bhavnani18-Jul-02 10:30
professionalRavi Bhavnani18-Jul-02 10:30 
GeneralISAPI and Unicode Pin
Roman Nurik18-Jul-02 10:04
Roman Nurik18-Jul-02 10:04 
GeneralRe: ISAPI and Unicode Pin
Joaquín M López Muñoz18-Jul-02 10:10
Joaquín M López Muñoz18-Jul-02 10:10 
GeneralI try again - CMenu::AppendMenu Pin
[CoY0te]18-Jul-02 9:52
[CoY0te]18-Jul-02 9:52 
GeneralRe: I try again - CMenu::AppendMenu Pin
Joaquín M López Muñoz18-Jul-02 10:05
Joaquín M López Muñoz18-Jul-02 10:05 
This little jewel I found some years ago:
void CYourDlg::GfxCmdUIUpdateMenu(CMenu* pMenu, BOOL bDisableIfNoHndler/*=TRUE*/)
/* (C) 2000 Douglas Peterson, <douglas.peterson@nospam.telex.com>
 * Ligeramente modificado.
 */
{
    ASSERT(pMenu == NULL || AfxIsValidAddress(pMenu, sizeof(class CMenu)));

    if (pMenu){
        CCmdUI cmdUI;
        cmdUI.m_pMenu = pMenu;
        cmdUI.m_pSubMenu = NULL;

        UINT nMax = pMenu->GetMenuItemCount();
        if (nMax == (UINT)-1)nMax = 0;
        cmdUI.m_nIndexMax = nMax;

        for (UINT n = 0; n < nMax; n++){
            cmdUI.m_nIndex = n;
            cmdUI.m_nID = pMenu->GetMenuItemID(n);

            // Recurse submenu's
            if (cmdUI.m_nID == (UINT)-1){
                CMenu* pSubMenu = pMenu->GetSubMenu(n);
                GfxCmdUIUpdateMenu(pSubMenu, bDisableIfNoHndler);
            }
            else cmdUI.DoUpdate(this, bDisableIfNoHndler);
        }
    }
}
Use it just before TrackPopupMenu. Please tell me back if it worked.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: I try again - CMenu::AppendMenu Pin
[CoY0te]18-Jul-02 10:43
[CoY0te]18-Jul-02 10:43 
GeneralRe: I try again - CMenu::AppendMenu Pin
Joaquín M López Muñoz18-Jul-02 11:02
Joaquín M López Muñoz18-Jul-02 11:02 
GeneralRe: I try again - CMenu::AppendMenu Pin
[CoY0te]18-Jul-02 11:13
[CoY0te]18-Jul-02 11:13 
GeneralRe: I try again - CMenu::AppendMenu Pin
Joaquín M López Muñoz18-Jul-02 11:16
Joaquín M López Muñoz18-Jul-02 11:16 
GeneralRe: I try again - CMenu::AppendMenu Pin
[CoY0te]18-Jul-02 11:33
[CoY0te]18-Jul-02 11:33 
GeneralRe: I try again - CMenu::AppendMenu Pin
Joaquín M López Muñoz18-Jul-02 11:41
Joaquín M López Muñoz18-Jul-02 11:41 
GeneralRe: I try again - CMenu::AppendMenu Pin
Jay Beckert18-Jul-02 14:25
Jay Beckert18-Jul-02 14:25 
GeneralRe: I try again - CMenu::AppendMenu Pin
[CoY0te]18-Jul-02 22:39
[CoY0te]18-Jul-02 22:39 
GeneralRe: I try again - CMenu::AppendMenu Pin
Mike Upton18-Jul-02 23:03
Mike Upton18-Jul-02 23:03 
GeneralRe: I try again - CMenu::AppendMenu Pin
[CoY0te]19-Jul-02 0:52
[CoY0te]19-Jul-02 0:52 
GeneralI like it that way Pin
KarstenK19-Jul-02 1:27
mveKarstenK19-Jul-02 1:27 
QuestionGet video adapter's name??? Pin
BlackSmith18-Jul-02 9:49
BlackSmith18-Jul-02 9:49 
AnswerRe: Get video adapter's name??? Pin
Joaquín M López Muñoz18-Jul-02 11:24
Joaquín M López Muñoz18-Jul-02 11:24 
GeneralGoing right to a subdialog Pin
Jason Hooper18-Jul-02 9:37
Jason Hooper18-Jul-02 9:37 
GeneralRe: Going right to a subdialog Pin
Joaquín M López Muñoz18-Jul-02 9:58
Joaquín M López Muñoz18-Jul-02 9:58 
GeneralRe: Going right to a subdialog Pin
Jason Hooper18-Jul-02 11:14
Jason Hooper18-Jul-02 11:14 
Generalheight of title bar of Cdialog Pin
ns18-Jul-02 9:18
ns18-Jul-02 9:18 

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.