diff options
Diffstat (limited to 'worldtime/plugwin.h')
-rw-r--r-- | worldtime/plugwin.h | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/worldtime/plugwin.h b/worldtime/plugwin.h new file mode 100644 index 0000000..0e83d96 --- /dev/null +++ b/worldtime/plugwin.h @@ -0,0 +1,113 @@ +#ifndef _PLUGWIN
+#define _PLUGWIN
+
+#define TIMER_ID 19191
+#define TIMER_ID2 19192
+#define TIMER_ID3 19193
+
+#include "timezone.h"
+
+#include <newpluginapi.h>
+#include <m_langpack.h>
+#include <m_skin.h>
+#include <m_database.h>
+#include <m_options.h>
+#include <m_popup.h>
+#include <m_protosvc.h>
+#include <m_protomod.h>
+#include <stdio.h>
+#include <m_utils.h>
+#include <m_cluiframes.h>
+//#include "../mwclist/m_clist.h"
+#include <m_clist.h>
+#include <m_genmenu.h>
+//#include "../mwclist/m_clc.h"
+#include <m_clc.h>
+#include <m_fontservice.h>
+#include <m_skin_eng.h>
+
+
+#include "IcoLib.h"
+
+#include <sstream>
+
+#include "resource.h"
+
+#include "time_convert.h"
+
+#define PLUG "WorldTime"
+
+#define DEFAULT_MINMAX false
+
+#define DEFAULT_WINDOW_X 100
+#define DEFAULT_WINDOW_Y 100
+#define DEFAULT_WINDOW_WIDTH 200
+#define DEFAULT_WINDOW_HEIGHT 100
+
+#define MAX_NAME_LENGTH 256
+#define MAX_TIME_LENGTH 256
+
+typedef struct tagLISTITEM {
+ int cbSize;
+ char pszText[MAX_NAME_LENGTH];
+ int timezone_list_index;
+ SYSTEMTIME sunset;
+ SYSTEMTIME sunrise;
+ char pszTimeText[MAX_NAME_LENGTH];
+ char pszDateText[MAX_NAME_LENGTH];
+ HICON icon;
+} LISTITEM;
+
+#include <vector>
+typedef std::vector<LISTITEM> ITEMLIST;
+
+extern HICON upIcon, downIcon;
+
+extern ITEMLIST listbox_items;
+
+extern HANDLE mainThread;
+
+extern char format_string[];
+
+int addmypluginwindow1(HWND parent);
+void plugwin_cleanup();
+
+
+int WorldTimeOptInit(WPARAM wParam,LPARAM lParam);
+void __stdcall ShowPopup( const char* line1, const char* line2, int flags );
+
+#define WinVerMajor() LOBYTE(LOWORD(GetVersion()))
+#define WinVerMinor() HIBYTE(LOWORD(GetVersion()))
+#define IsWinVer2000Plus() (WinVerMajor()>=5)
+
+#define CLCDEFAULT_BKCOLOUR GetSysColor(COLOR_3DFACE)
+#define CLCDEFAULT_SELBKCOLOUR GetSysColor(COLOR_HIGHLIGHT)
+#define CLCDEFAULT_SELTEXTCOLOUR GetSysColor(COLOR_HIGHLIGHTTEXT)
+#define CLCDEFAULT_TEXTCOLOUR GetSysColor(COLOR_WINDOWTEXT)
+
+int InitIcons(WPARAM wParam, LPARAM lParam);
+int LoadIcons(WPARAM wParam, LPARAM lParam);
+
+extern HINSTANCE hInst;
+
+extern ITEMLIST listbox_items;
+
+extern TCHAR format_string[512], date_format_string[512];
+
+extern HWND pluginwind, hwnd_clist;
+
+extern bool hook_window_behaviour_to_clist;
+extern bool set_format;
+extern bool show_icons;
+extern bool hide_menu;
+
+extern HFONT ContactFont;
+extern COLORREF ContactFontColour;
+
+HFONT GetFont();
+
+int FillList(WPARAM wParam, LPARAM lParam);
+
+
+
+#endif
|