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/src/HistoryWindow.cpp | |
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/src/HistoryWindow.cpp')
-rw-r--r-- | plugins/BasicHistory/src/HistoryWindow.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
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)
|