diff options
Diffstat (limited to 'worldtime/plugwin.h')
-rw-r--r-- | worldtime/plugwin.h | 40 |
1 files changed, 7 insertions, 33 deletions
diff --git a/worldtime/plugwin.h b/worldtime/plugwin.h index 1229909..24196a9 100644 --- a/worldtime/plugwin.h +++ b/worldtime/plugwin.h @@ -5,35 +5,10 @@ #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 "m_skin_eng.h"
-
-
-#include <m_icolib.h>
-
-#include <sstream>
-
+#include "common.h"
#include "resource.h"
+#include "timezone.h"
#include "time_convert.h"
#define PLUG "WorldTime"
@@ -50,17 +25,16 @@ typedef struct tagLISTITEM {
int cbSize;
- char pszText[MAX_NAME_LENGTH];
+ TCHAR pszText[MAX_NAME_LENGTH];
int timezone_list_index;
SYSTEMTIME sunset;
SYSTEMTIME sunrise;
- char pszTimeText[MAX_NAME_LENGTH];
- char pszDateText[MAX_NAME_LENGTH];
+ TCHAR pszTimeText[MAX_NAME_LENGTH];
+ TCHAR pszDateText[MAX_NAME_LENGTH];
HICON icon;
} LISTITEM;
-#include <vector>
-typedef std::vector<LISTITEM> ITEMLIST;
+typedef OBJLIST<LISTITEM> ITEMLIST;
extern HICON upIcon, downIcon;
@@ -68,7 +42,7 @@ extern ITEMLIST listbox_items; extern HANDLE mainThread;
-extern char format_string[];
+extern TCHAR format_string[];
int addmypluginwindow1(HWND parent);
void plugwin_cleanup();
|