summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/dropbox_menus.cpp
blob: fe20bddf1dbfb03fe527a31135ebe24cce2002ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "dropbox.h"

HGENMENU CDropbox::ContactMenuItems[CMI_MAX];

void CDropbox::InitMenus()
{
	CLISTMENUITEM mi = { 0 };
	mi.cbSize = sizeof(CLISTMENUITEM);
	mi.flags = CMIF_TCHAR;

	mi.pszService = MODULE"/RequeriedAccess";
	mi.ptszName = LPGENT("Requeried access");
	mi.position = -201001000 + CMI_API_ACCESS_REQUERIED;
	mi.icolibItem = LoadSkinnedIconHandle(SKINICON_AUTH_REVOKE);
	ContactMenuItems[CMI_API_ACCESS_REQUERIED] = Menu_AddContactMenuItem(&mi);
	CreateServiceFunction(mi.pszService, RequeriedApiAccess);
}