summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/utils.h
blob: 1858c34d9c8f57a420675eb630593af4199685e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
struct ItemData;
struct NewstoryListData;

uint32_t toggleBit(uint32_t dw, uint32_t bit);
bool CheckFilter(wchar_t *buf, wchar_t *filter);

HMENU NSMenu_Build(NewstoryListData *data, ItemData *item);
bool NSMenu_Process(int iCommand, NewstoryListData *data);

int GetFontHeight(const LOGFONTA &lf);

void UrlAutodetect(CMStringW &str);
void RemoveBbcodes(CMStringW &pwszText);

Bitmap* LoadImageFromResource(HINSTANCE, int, const wchar_t *);

int SmartSendEvent(int iEvent, MCONTACT hContact, LPARAM lParam);