diff options
author | George Hazan <ghazan@miranda.im> | 2021-12-26 20:31:39 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-12-26 20:31:39 +0300 |
commit | cddcd7483a7c472598af098e759e5d309024f606 (patch) | |
tree | b0a227d6e087c41958cc84d27bc323353248aae5 /plugins/HistoryLinkListPlus | |
parent | 1039b2829a264280493ba0fa979214fe024dc70c (diff) |
DWORD -> uint32_t
Diffstat (limited to 'plugins/HistoryLinkListPlus')
-rw-r--r-- | plugins/HistoryLinkListPlus/src/linklist_fct.cpp | 10 | ||||
-rw-r--r-- | plugins/HistoryLinkListPlus/src/linklist_fct.h | 4 | ||||
-rw-r--r-- | plugins/HistoryLinkListPlus/src/stdafx.h | 10 |
3 files changed, 12 insertions, 12 deletions
diff --git a/plugins/HistoryLinkListPlus/src/linklist_fct.cpp b/plugins/HistoryLinkListPlus/src/linklist_fct.cpp index 6994f9ebaf..406ce734be 100644 --- a/plugins/HistoryLinkListPlus/src/linklist_fct.cpp +++ b/plugins/HistoryLinkListPlus/src/linklist_fct.cpp @@ -504,7 +504,7 @@ void WriteLinkList(HWND hDlg, uint8_t params, LISTELEMENT *listStart, LPCTSTR se /*
Output some example text to the options dialog
*/
-int WriteOptionExample(HWND hDlg, DWORD InColourSel, DWORD OutColourSel, DWORD BGColourSel, DWORD TxtColourSel, LISTOPTIONS *options)
+int WriteOptionExample(HWND hDlg, uint32_t InColourSel, uint32_t OutColourSel, uint32_t BGColourSel, uint32_t TxtColourSel, LISTOPTIONS *options)
{
CHARFORMAT cf;
PARAFORMAT pf;
@@ -930,7 +930,7 @@ Read current coloursettings from the database */
void GetColour(MYCOLOURSET *colourSet)
{
- DWORD colour;
+ uint32_t colour;
uint8_t useDefault;
useDefault = g_plugin.getByte(LINKLIST_USE_DEF, 0xFF);
@@ -1032,7 +1032,7 @@ if entry does not exist. */
void GetDBColour(MYCOLOURSET *colourSet)
{
- DWORD colour;
+ uint32_t colour;
// Use Plugin user defined or default colours
colour = g_plugin.getDword(LINKLIST_IN_COL, 0xFF000000);
@@ -1077,7 +1077,7 @@ Read current coloursettings from the database (Miranda settings) */
int GetMirandaColour(MYCOLOURSET *colourSet)
{
- DWORD colour;
+ uint32_t colour;
// Use Miranda-IM Default colours
// Try SRMM (Miranda 0.4) .... or SRMsg... for older versions
@@ -1259,7 +1259,7 @@ BOOL SaveEditAsStream(HWND hDlg) return TRUE;
}
-DWORD CALLBACK RTFSaveStreamCallback(DWORD_PTR dwCookie, LPBYTE lpBuffer, LONG lSize, LONG *plRead)
+uint32_t CALLBACK RTFSaveStreamCallback(DWORD_PTR dwCookie, LPBYTE lpBuffer, LONG lSize, LONG *plRead)
{
// Sanity check...exit if nothing passed
if (!lSize)
diff --git a/plugins/HistoryLinkListPlus/src/linklist_fct.h b/plugins/HistoryLinkListPlus/src/linklist_fct.h index b6d016ebeb..f5ca89c592 100644 --- a/plugins/HistoryLinkListPlus/src/linklist_fct.h +++ b/plugins/HistoryLinkListPlus/src/linklist_fct.h @@ -29,7 +29,7 @@ void SetListOptions(LISTOPTIONS*); void ClearLinePos(LISTELEMENT*);
int GetLastLinePos(LISTELEMENT*);
void WriteLinkList(HWND, uint8_t, LISTELEMENT*, LPCTSTR, int);
-int WriteOptionExample(HWND, DWORD, DWORD, DWORD, DWORD, LISTOPTIONS*);
+int WriteOptionExample(HWND, uint32_t, uint32_t, uint32_t, uint32_t, LISTOPTIONS*);
void WriteMessage(HWND, LISTELEMENT*, int);
void GetColour(MYCOLOURSET*);
void GetDBColour(MYCOLOURSET*);
@@ -39,6 +39,6 @@ uint8_t GetUpdateSetting(void); int LinklistResizer(HWND,LPARAM,UTILRESIZECONTROL*);
// RTF Save functions
BOOL SaveEditAsStream( HWND );
-DWORD CALLBACK RTFSaveStreamCallback( DWORD_PTR, LPBYTE, LONG, LONG * );
+uint32_t CALLBACK RTFSaveStreamCallback( DWORD_PTR, LPBYTE, LONG, LONG * );
#endif //_LINKLIST_FCT_H
\ No newline at end of file diff --git a/plugins/HistoryLinkListPlus/src/stdafx.h b/plugins/HistoryLinkListPlus/src/stdafx.h index d528ec95a5..349406dc33 100644 --- a/plugins/HistoryLinkListPlus/src/stdafx.h +++ b/plugins/HistoryLinkListPlus/src/stdafx.h @@ -96,10 +96,10 @@ typedef struct { } LISTOPTIONS;
typedef struct {
- DWORD incoming;
- DWORD outgoing;
- DWORD background;
- DWORD text;
+ uint32_t incoming;
+ uint32_t outgoing;
+ uint32_t background;
+ uint32_t text;
} MYCOLOURSET;
#include "linklist_fct.h"
@@ -135,7 +135,7 @@ struct CMPlugin : public PLUGIN<CMPlugin> };
#define _mstrlen(x) (_countof(x) - 1)
-#define MAKE_TXT_COL(BGCol) ((DWORD)~BGCol & 0x00FFFFFF)
+#define MAKE_TXT_COL(BGCol) ((uint32_t)~BGCol & 0x00FFFFFF)
#define DM_LINKSPLITTER WM_USER+99
|