summaryrefslogtreecommitdiff
path: root/yapp/popup_history.h
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-01-27 14:26:48 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-01-27 14:26:48 +0000
commitfa08cfd41dfb84b42a2183a08a6045528a4e5263 (patch)
tree86b172e7ac6a3d7ab20878f3196d69179da58001 /yapp/popup_history.h
parent155c12bafe3a30b502f8effc07e2ef258cdee85b (diff)
oops - re-applied popup history renderer patch from Eblis
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@81 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'yapp/popup_history.h')
-rw-r--r--yapp/popup_history.h40
1 files changed, 38 insertions, 2 deletions
diff --git a/yapp/popup_history.h b/yapp/popup_history.h
index 7bc49a0..cf8b6b3 100644
--- a/yapp/popup_history.h
+++ b/yapp/popup_history.h
@@ -1,10 +1,41 @@
#ifndef __popup_history_h__
#define __popup_history_h__
+#include "m_ieview.h" //need this for special renderers
+
+/****HISTORY ++ STUFF ***/
+//there's no include file for h++ yet
+#ifndef MS_HPP_EG_WINDOW
+#define MS_HPP_EG_WINDOW "History++/ExtGrid/NewWindow"
+#endif
+
+#ifndef MS_HPP_EG_EVENT
+#define MS_HPP_EG_EVENT "History++/ExtGrid/Event"
+#endif
+
+#ifndef MS_HPP_EG_NAVIGATE
+#define MS_HPP_EG_NAVIGATE "History++/ExtGrid/Navigate"
+#endif
+
+#ifndef MS_HPP_EG_OPTIONSCHANGED
+#define MS_HPP_EG_OPTIONSCHANGED "History++/ExtGrid/OptionsChanged"
+#endif
+/************************/
+
+
+
#define HISTORY_SIZE 200 //number of popup history items
#define PHDF_UNICODE 1
+#define POPUPMENU_TITLE 100
+#define POPUPMENU_MESSAGE 101
+#define POPUPMENU_TIMESTAMP 102
+
+#define RENDER_DEFAULT 0x00000
+#define RENDER_HISTORYPP 0x00001
+#define RENDER_IEVIEW 0x00002
+
struct PopupHistoryData{
DWORD flags; //PHDF_* flags
union{
@@ -26,15 +57,19 @@ class PopupHistoryList{
PopupHistoryData *historyData; //historyData[0] - oldest, historyData[size - 1] - newest
int count;
int size;
+ int renderer;
void DeleteData(int index);
void AddItem(PopupHistoryData item); //adds a PopupHistoryData item
void RemoveItem(int index);
public:
- PopupHistoryList();
+ PopupHistoryList(int renderer = RENDER_DEFAULT);
~PopupHistoryList();
+ int GetRenderer();
+ void SetRenderer(int newRenderer);
+
void Add(char *title, char *message, time_t timestamp);
void Add(wchar_t *title, wchar_t *message, time_t timestamp);
@@ -54,7 +89,8 @@ lParam - 0
extern PopupHistoryList lstPopupHistory; //defined in main.cpp
extern HWND hHistoryWindow; //the history window
-void RefreshPopupHistory(HWND hWnd);
+extern HICON hiPopupHistory;
+void RefreshPopupHistory(HWND hWnd, int renderer);
BOOL CALLBACK DlgProcHistLst(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);