summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-03-05 22:13:25 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-03-05 22:13:25 +0300
commit78c41a686c483076e6987c18266236c0b17652a1 (patch)
treee41d24dd2839e78f622cec9b867fd930294a46bb /plugins/TabSRMM
parentabf257df3d7d49289eae61ab849b9b292086ca68 (diff)
unused type declaration removed
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r--plugins/TabSRMM/src/chat/chat.h49
-rw-r--r--plugins/TabSRMM/src/chat/window.cpp6
2 files changed, 24 insertions, 31 deletions
diff --git a/plugins/TabSRMM/src/chat/chat.h b/plugins/TabSRMM/src/chat/chat.h
index c116165cbd..de0f4cc330 100644
--- a/plugins/TabSRMM/src/chat/chat.h
+++ b/plugins/TabSRMM/src/chat/chat.h
@@ -37,28 +37,21 @@ enum TChatStatusEx
CHAT_STATUS_MAX
};
-// special service for tweaking performance
-#define MS_GC_GETEVENTPTR "GChat/GetNewEventPtr"
-typedef INT_PTR(*GETEVENTFUNC)(WPARAM wParam, LPARAM lParam);
-typedef struct {
- GETEVENTFUNC pfnAddEvent;
-}GCPTRS;
-
class CMUCHighlight;
// structs
struct MODULEINFO : public GCModuleInfoBase
{
- DWORD idleTimeStamp;
- DWORD lastIdleCheck;
- wchar_t tszIdleMsg[60];
+ DWORD idleTimeStamp;
+ DWORD lastIdleCheck;
+ wchar_t tszIdleMsg[60];
};
struct SESSION_INFO : public GCSessionInfoBase
{
- CChatRoomDlg *dat;
- int iLogTrayFlags, iLogPopupFlags, iDiskLogFlags;
+ CChatRoomDlg *dat;
+ int iLogTrayFlags, iLogPopupFlags, iDiskLogFlags;
};
struct LOGSTREAMDATA : public GCLogStreamDataBase
@@ -69,22 +62,22 @@ struct LOGSTREAMDATA : public GCLogStreamDataBase
struct TMUCSettings : public GlobalLogSettingsBase
{
- HICON hIconOverlay;
- DWORD dwIconFlags;
- LONG iNickListFontHeight;
- int iEventLimitThreshold;
-
- HFONT UserListFonts[CHAT_STATUS_MAX];
- COLORREF UserListColors[CHAT_STATUS_MAX];
-
- COLORREF nickColors[8];
- HBRUSH SelectionBGBrush;
- bool bOpenInDefault, bBBCodeInPopups;
- bool bDoubleClick4Privat, bShowContactStatus, bContactStatusFirst;
-
- bool bLogClassicIndicators, bAlternativeSorting, bAnnoyingHighlight, bCreateWindowOnHighlight;
- bool bLogSymbols, bClassicIndicators, bClickableNicks, bColorizeNicks, bColorizeNicksInLog;
- bool bScaleIcons, bUseCommaAsColon, bNewLineAfterNames;
+ HICON hIconOverlay;
+ DWORD dwIconFlags;
+ LONG iNickListFontHeight;
+ int iEventLimitThreshold;
+
+ HFONT UserListFonts[CHAT_STATUS_MAX];
+ COLORREF UserListColors[CHAT_STATUS_MAX];
+
+ COLORREF nickColors[8];
+ HBRUSH SelectionBGBrush;
+ bool bOpenInDefault, bBBCodeInPopups;
+ bool bDoubleClick4Privat, bShowContactStatus, bContactStatusFirst;
+
+ bool bLogClassicIndicators, bAlternativeSorting, bAnnoyingHighlight, bCreateWindowOnHighlight;
+ bool bLogSymbols, bClassicIndicators, bClickableNicks, bColorizeNicks, bColorizeNicksInLog;
+ bool bScaleIcons, bUseCommaAsColon, bNewLineAfterNames;
CMUCHighlight* Highlight;
};
diff --git a/plugins/TabSRMM/src/chat/window.cpp b/plugins/TabSRMM/src/chat/window.cpp
index f91592807e..152c958ae8 100644
--- a/plugins/TabSRMM/src/chat/window.cpp
+++ b/plugins/TabSRMM/src/chat/window.cpp
@@ -464,7 +464,7 @@ LBL_SkipEnd:
static LRESULT CALLBACK MessageSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
HWND hwndParent = GetParent(hwnd);
- CTabBaseDlg *mwdat = (CChatRoomDlg*)GetWindowLongPtr(hwndParent, GWLP_USERDATA);
+ CChatRoomDlg *mwdat = (CChatRoomDlg*)GetWindowLongPtr(hwndParent, GWLP_USERDATA);
MESSAGESUBDATA *dat = (MESSAGESUBDATA*)GetWindowLongPtr(hwnd, GWLP_USERDATA);
if (mwdat != nullptr)
@@ -1104,7 +1104,7 @@ static LRESULT CALLBACK ButtonSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, L
static LRESULT CALLBACK LogSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
HWND hwndParent = GetParent(hwnd);
- CSrmmWindow *mwdat = (CSrmmWindow*)GetWindowLongPtr(hwndParent, GWLP_USERDATA);
+ CChatRoomDlg *mwdat = (CChatRoomDlg*)GetWindowLongPtr(hwndParent, GWLP_USERDATA);
switch (msg) {
case WM_NCCALCSIZE:
@@ -1747,7 +1747,7 @@ void CChatRoomDlg::OnClick_OK(CCtrlButton*)
if (ptszText.IsEmpty())
return;
- si->dat->DoRtfToTags(ptszText, mi->nColorCount, mi->crColors);
+ DoRtfToTags(ptszText, mi->nColorCount, mi->crColors);
ptszText.Trim();
ptszText.Replace(L"%", L"%%");