summaryrefslogtreecommitdiff
path: root/plugins/TooltipNotify/src/TooltipNotify.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-06-11 14:59:35 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-06-11 14:59:35 +0000
commit48fc03aa394f4506c6053323386c040fede13a29 (patch)
tree2cbb748d340ae1bb0fb141486a1033e629cad9ab /plugins/TooltipNotify/src/TooltipNotify.h
parent11cc72bbdc90d99d2383da11f13031ef31921baa (diff)
- buggy window position saving code replaced with the standard Miranda service (fixes bug #350);
- version bump; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@4916 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TooltipNotify/src/TooltipNotify.h')
-rw-r--r--plugins/TooltipNotify/src/TooltipNotify.h37
1 files changed, 16 insertions, 21 deletions
diff --git a/plugins/TooltipNotify/src/TooltipNotify.h b/plugins/TooltipNotify/src/TooltipNotify.h
index 8cdb306203..886cacb553 100644
--- a/plugins/TooltipNotify/src/TooltipNotify.h
+++ b/plugins/TooltipNotify/src/TooltipNotify.h
@@ -10,18 +10,18 @@ private:
struct STooltipData;
public:
- CTooltipNotify(HINSTANCE hinstDLL);
+ CTooltipNotify();
virtual ~CTooltipNotify();
// exceptions
class EAlreadyExists {};
BOOL EndNotify(STooltipData* pTooltipData);
- VOID EndNotifyAll();
+ void EndNotifyAll();
CTooltip *BeginNotify(STooltipData *pTooltipData);
- VOID OnTooltipDblClicked(CTooltip *pTooltip);
+ void OnTooltipDblClicked(CTooltip *pTooltip);
BOOL OnTooltipBeginMove(CTooltip *pTooltip);
- VOID OnTooltipEndMove(CTooltip *pTooltip);
+ void OnTooltipEndMove(CTooltip *pTooltip);
int InitializeOptions(WPARAM wParam, LPARAM lParam);
int ContactSettingChanged(WPARAM wParam, LPARAM lParam);
int ProtoAck(WPARAM wParam, LPARAM lParam);
@@ -29,7 +29,6 @@ public:
int ProtoContactIsTyping(WPARAM wParam, LPARAM lParam);
static CTooltipNotify *GetObjInstance() { return s_pInstance; }
- HINSTANCE GetDllInstance() const { return m_hDllInstance; }
private:
// prohibit copying
@@ -39,9 +38,7 @@ private:
private:
static CTooltipNotify *s_pInstance;
static const char *s_szModuleNameOld;
- static const char *s_szModuleName;
- const HINSTANCE m_hDllInstance;
const BOOL m_bNt50;
struct SOptions {
@@ -61,8 +58,6 @@ private:
BYTE bLDblClick;
BYTE bPrefixProto;
WORD wDuration;
- WORD wXPos;
- WORD wYPos;
WORD wStartupDelay;
BYTE bIgnoreNew;
BYTE bIgnoreUnknown;
@@ -94,33 +89,33 @@ private:
template<typename T> TooltipsListIter FindBy(T STooltipData::* m, const T& value);
TCHAR *StatusToString(int iStatus, TCHAR *szStatus, int iBufSize);
TCHAR *MakeTooltipString(HANDLE hContact, int iStatus, TCHAR *szString, int iBufSize);
- VOID MigrateSettings();
+ void MigrateSettings();
void RegisterFonts();
void GetFont(int iStatus, LOGFONT* lf, COLORREF* text, COLORREF* bg);
void ResetCList(HWND hwndDlg);
void LoadList(HWND hwndDlg, HANDLE hItemNew, HANDLE hItemUnknown);
void SaveList(HWND hwndDlg, HANDLE hItemNew, HANDLE hItemUnknown);
- VOID LoadSettings();
- VOID SaveSettings();
- VOID ValidateSettings();
- VOID ReadSettingsFromDlg(HWND hDlg);
- VOID WriteSettingsToDlg(HWND hDlg);
+ void LoadSettings();
+ void SaveSettings();
+ void ValidateSettings();
+ void ReadSettingsFromDlg(HWND hDlg);
+ void WriteSettingsToDlg(HWND hDlg);
- VOID SuspendTimer(CTooltip *pTooltip);
- VOID ResumeTimer(CTooltip *pTooltip);
- VOID OnConnectionTimer(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime);
- VOID OnTooltipTimer(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime);
+ void SuspendTimer(CTooltip *pTooltip);
+ void ResumeTimer(CTooltip *pTooltip);
+ void OnConnectionTimer(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime);
+ void OnTooltipTimer(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime);
// Dialog procedures
BOOL OptionsDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
BOOL ProtosDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
BOOL ContactsDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
- static VOID CALLBACK ConnectionTimerProcWrapper(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
+ static void CALLBACK ConnectionTimerProcWrapper(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
{
CTooltipNotify::GetObjInstance()->OnConnectionTimer(hwnd, uMsg, idEvent, dwTime);
}
- static VOID CALLBACK TooltipTimerProcWrapper(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
+ static void CALLBACK TooltipTimerProcWrapper(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
{
CTooltipNotify::GetObjInstance()->OnTooltipTimer(hwnd, uMsg, idEvent, dwTime);
}