Back to index

lightning-sunbird  0.9+nobinonly
Functions
CBrowserCtlSite.cpp File Reference
#include "stdafx.h"
#include "Cbrowse.h"
#include "CBrowserCtlSite.h"
#include <tchar.h>
#include <string.h>

Go to the source code of this file.

Functions

static void _InsertMenuItem (HMENU hmenu, int nPos, int nID, const TCHAR *szItemText)
static void _InsertMenuSeparator (HMENU hmenu, int nPos)

Function Documentation

static void _InsertMenuItem ( HMENU  hmenu,
int  nPos,
int  nID,
const TCHAR szItemText 
) [static]

Definition at line 18 of file CBrowserCtlSite.cpp.

{
       MENUITEMINFO mii;
       memset(&mii, 0, sizeof(mii));
       mii.cbSize = sizeof(mii);
       mii.fMask = MIIM_TYPE;
       mii.fType = MFT_STRING;
       mii.fState = MFS_ENABLED;
       mii.dwTypeData = (LPTSTR) szItemText;
       mii.cch = _tcslen(szItemText);
       InsertMenuItem(hmenu, nPos, TRUE, &mii);
}

Here is the call graph for this function:

static void _InsertMenuSeparator ( HMENU  hmenu,
int  nPos 
) [static]

Definition at line 31 of file CBrowserCtlSite.cpp.

{
       MENUITEMINFO mii;
       memset(&mii, 0, sizeof(mii));
       mii.cbSize = sizeof(mii);
       mii.fMask = MIIM_TYPE;
       mii.fType = MFT_SEPARATOR;
       mii.fState = MFS_ENABLED;
       InsertMenuItem(hmenu, nPos, TRUE, &mii);
}

Here is the call graph for this function: