diff options
author | Abdul <abdul@miranda-ng.org> | 2012-07-14 18:11:18 +0000 |
---|---|---|
committer | Abdul <abdul@miranda-ng.org> | 2012-07-14 18:11:18 +0000 |
commit | e2e713063780dd623c8025b6f4762c1e32bc784d (patch) | |
tree | bc9375355dcb8df8c58baa5884d2e17d90151029 /plugins/BasicHistory | |
parent | cde7f54ac7241e81bfb1f0a471026246c8663370 (diff) |
BasicHistory updated to 1.0.1.8
git-svn-id: http://svn.miranda-ng.org/main/trunk@972 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/BasicHistory')
-rw-r--r-- | plugins/BasicHistory/Docs/BasicHistory_readme.txt | 3 | ||||
-rw-r--r-- | plugins/BasicHistory/src/HistoryWindow.cpp | 16 | ||||
-rw-r--r-- | plugins/BasicHistory/src/HistoryWindow.h | 1 | ||||
-rw-r--r-- | plugins/BasicHistory/src/version.h | 2 |
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
|