summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/BasicHistory/Docs/BasicHistory_readme.txt3
-rw-r--r--plugins/BasicHistory/src/HistoryWindow.cpp16
-rw-r--r--plugins/BasicHistory/src/HistoryWindow.h1
-rw-r--r--plugins/BasicHistory/src/version.h2
4 files changed, 20 insertions, 2 deletions
diff --git a/plugins/BasicHistory/Docs/BasicHistory_readme.txt b/plugins/BasicHistory/Docs/BasicHistory_readme.txt
index b258cda8fc..ba19327ba5 100644
--- a/plugins/BasicHistory/Docs/BasicHistory_readme.txt
+++ b/plugins/BasicHistory/Docs/BasicHistory_readme.txt
@@ -24,6 +24,9 @@ Microsoft Visual C++ 2008 Redistributable Package for x86 version (included in M
Changelog
=========
+--- 1.0.1.8 ---
+* scrollbar position on bottom when opening history
+
--- 1.0.1.7 ---
* fixed border colors
diff --git a/plugins/BasicHistory/src/HistoryWindow.cpp b/plugins/BasicHistory/src/HistoryWindow.cpp
index d5c3948cb7..0226f87508 100644
--- a/plugins/BasicHistory/src/HistoryWindow.cpp
+++ b/plugins/BasicHistory/src/HistoryWindow.cpp
@@ -61,7 +61,8 @@ HistoryWindow::HistoryWindow(HANDLE _hContact) :
bkFindBrush(NULL),
hSystem(NULL),
splitterXhWnd(NULL),
- splitterYhWnd(NULL)
+ splitterYhWnd(NULL),
+ isStartSelect(true)
{
searcher.SetContect(this);
hContact = _hContact;
@@ -1326,6 +1327,8 @@ void HistoryWindow::Initialise()
SetDefFilter(Options::instance->defFilter);
+ InvalidateRect(listWindow, NULL, TRUE);
+ InvalidateRect(hWnd, NULL, TRUE);
SendMessage(hWnd, DM_SETDEFID, IDM_FIND, 0);
SendMessage(hWnd, WM_SIZE, 0, 0);
SendMessage(hWnd,DM_HREBUILD,0,0);
@@ -1710,6 +1713,17 @@ void HistoryWindow::SelectEventGroup(int sel)
{
UpdateWindow(editWindow);
}
+
+ if(isStartSelect && !Options::instance->messagesNewOnTop)
+ {
+ HWND h = SetFocus(editWindow);
+ CHARRANGE ch;
+ ch.cpMin = ch.cpMax = MAXLONG;
+ SendMessage(editWindow,EM_EXSETSEL,0,(LPARAM)&ch);
+ SendMessage(editWindow,EM_SCROLLCARET,0,0);
+ }
+
+ isStartSelect = false;
}
LRESULT CALLBACK HistoryWindow::SplitterSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
diff --git a/plugins/BasicHistory/src/HistoryWindow.h b/plugins/BasicHistory/src/HistoryWindow.h
index 8a31d9194a..5575c6c11e 100644
--- a/plugins/BasicHistory/src/HistoryWindow.h
+++ b/plugins/BasicHistory/src/HistoryWindow.h
@@ -70,6 +70,7 @@ private:
HBRUSH bkFindBrush;
HANDLE hSystem;
HWND splitterXhWnd, splitterYhWnd;
+ bool isStartSelect;
protected:
virtual void AddGroup(bool isMe, const std::wstring &time, const std::wstring &user, const std::wstring &eventText, int ico);
public:
diff --git a/plugins/BasicHistory/src/version.h b/plugins/BasicHistory/src/version.h
index b3f35e42ef..e906c9634a 100644
--- a/plugins/BasicHistory/src/version.h
+++ b/plugins/BasicHistory/src/version.h
@@ -1,7 +1,7 @@
#define __MAJOR_VERSION 1
#define __MINOR_VERSION 0
#define __RELEASE_NUM 1
-#define __BUILD_NUM 7
+#define __BUILD_NUM 8
#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
#define __FILEVERSION_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM