summaryrefslogtreecommitdiff
path: root/plugins/BasicHistory/src/HistoryWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/BasicHistory/src/HistoryWindow.cpp')
-rw-r--r--plugins/BasicHistory/src/HistoryWindow.cpp16
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)