diff options
author | George Hazan <george.hazan@gmail.com> | 2015-09-01 15:18:56 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-09-01 15:18:56 +0000 |
commit | c16bd3d58396036f078282ad0b7032562c0c0533 (patch) | |
tree | 28a330ad3bd8ba85a20cd2b9a18d5186a0861e66 /plugins/TabSRMM/src/tabctrl.cpp | |
parent | 1b9f36054bddeef87d4f9c139877d28c4e6b1702 (diff) |
- adaptation for the kernel strdel();
- buffer overrun removed (rare crashes);
- old useless code removed;
- removal of a blank line after comments was a bad idea
git-svn-id: http://svn.miranda-ng.org/main/trunk@15136 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/tabctrl.cpp')
-rw-r--r-- | plugins/TabSRMM/src/tabctrl.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/TabSRMM/src/tabctrl.cpp b/plugins/TabSRMM/src/tabctrl.cpp index f693c3ee92..0e0cdc68c0 100644 --- a/plugins/TabSRMM/src/tabctrl.cpp +++ b/plugins/TabSRMM/src/tabctrl.cpp @@ -78,6 +78,7 @@ static int TabCtrl_TestForCloseButton(const TabControlData *tabdat, HWND hwnd, P /////////////////////////////////////////////////////////////////////////////////////////
// tabctrl helper function
// Finds leftmost down item.
+
static UINT FindLeftDownItem(HWND hwnd)
{
RECT rctLeft = { 100000, 0, 0, 0 }, rctCur;
@@ -98,6 +99,7 @@ static UINT FindLeftDownItem(HWND hwnd) /////////////////////////////////////////////////////////////////////////////////////////
// tab control color definitions, including the database setting key names
+
static struct colOptions
{
UINT defclr;
@@ -117,6 +119,7 @@ static struct colOptions /////////////////////////////////////////////////////////////////////////////////////////
// hints for drawing functions
+
#define HINT_ACTIVATE_RIGHT_SIDE 1
#define HINT_ACTIVE_ITEM 2
#define FLOAT_ITEM_HEIGHT_SHIFT 2
@@ -156,6 +159,7 @@ void TSAPI FillTabBackground(const HDC hdc, int iStateId, const TWindowData *dat // it obtains the label and icon handle directly from the message window data
// no image list is used and necessary, the message window dialog procedure has to provide a valid
// icon handle in dat->hTabIcon
+
static void DrawItem(TabControlData *tabdat, HDC dc, RECT *rcItem, int nHint, int nItem, TWindowData *dat)
{
if (dat == NULL)
@@ -1305,6 +1309,7 @@ static LRESULT CALLBACK TabControlSubclassProc(HWND hwnd, UINT msg, WPARAM wPara /////////////////////////////////////////////////////////////////////////////////////////
// load the tab control configuration data (colors, fonts, flags...
+
void TSAPI ReloadTabConfig()
{
PluginConfig.tabConfig.m_hPenLight = CreatePen(PS_SOLID, 1, GetSysColor(COLOR_3DHILIGHT));
@@ -1355,6 +1360,7 @@ static bool tconfig_init = false; /////////////////////////////////////////////////////////////////////////////////////////
// options dialog for setting up tab options
+
INT_PTR CALLBACK DlgProcTabConfig(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch (msg) {
@@ -1454,6 +1460,7 @@ INT_PTR CALLBACK DlgProcTabConfig(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM /////////////////////////////////////////////////////////////////////////////////////////
// register the new tab control as a window class (TSTabCtrlClass)
+
int TSAPI RegisterTabCtrlClass(void)
{
WNDCLASSEX wc = { 0 };
|