예제 #1
0
파일: main.cpp 프로젝트: Seldom/miranda-ng
int onModulesLoaded(WPARAM, LPARAM)
{
	HookEvent(ME_OPT_INITIALISE, onOptInitialise);

	fill_filter();

	// Set initial value for all contacts
	for (MCONTACT hContact = db_find_first(); hContact; hContact = db_find_next(hContact))
		applyExtraImage(hContact);

	return 0;
}
예제 #2
0
파일: main.cpp 프로젝트: Seldom/miranda-ng
int onContactSettingChanged(WPARAM hContact, LPARAM lParam)
{
	DBCONTACTWRITESETTING *cws = (DBCONTACTWRITESETTING*)lParam;

	if (!strcmp(cws->szModule, "Ignore") && !strcmp(cws->szSetting, "Mask1"))
		applyExtraImage(hContact);
	else if (hContact == 0) {
		if ((!strcmp(cws->szModule, MODULENAME) && !strcmp(cws->szSetting, "Filter")) ||
			(bUseMirandaSettings && !strcmp(cws->szModule, "Ignore") && !strcmp(cws->szSetting, "Default1")))
		{
			fill_filter();
		}
	}

	return 0;
}
예제 #3
0
int onModulesLoaded(WPARAM wParam,LPARAM lParam)
{
	HookEvent(ME_OPT_INITIALISE, onOptInitialise);

	//IcoLib support
	Icon_Register(g_hInst, LPGEN("Ignore State"), iconList, SIZEOF(iconList));

	fill_filter();

	hExtraIcon = ExtraIcon_Register("ignore", LPGEN("Ignore State"), "ignore_full");

	// Set initial value for all contacts
	for (HANDLE hContact = db_find_first(); hContact; hContact = db_find_next(hContact))
		applyExtraImage(hContact);

	return 0;
}