Do you mean the title (string) of the selected item ? :)
OK.
resource.h
#define IDS_RED 10000
#define IDS_GREEN 10001
#define IDS_BLUE 10002
#define IDR_POPUP_COLOR 20000
yourapp.rc
STRINGTABLE
IDS_RED "Red"
IDS_GREEN "Green"
IDS_BLUE "Blue"
BEGIN
END
IDR_POPUP_COLOR MENU
BEGIN
POPUP ""
BEGIN
MENUITEM "Red", IDS_RED
MENUITEM "Green", IDS_GREEN
MENUITEM "Blue", IDS_BLUE
END
END
yourview.cpp
BEGIN_MESSAGE_MAP(CYourView, CBaseView)
ON_COMMAND_RANGE(IDS_RED, IDS_BLUE, OnColor)
...
END_MESSAGE_MAP()
void CYourView::OnColor(UINT uiColorID)
{
CString cszResult;
cszResult.LoadString(uiColorID);
}