summaryrefslogtreecommitdiff
path: root/plugins/NewStory
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-12-26 20:31:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-12-26 20:31:39 +0300
commitcddcd7483a7c472598af098e759e5d309024f606 (patch)
treeb0a227d6e087c41958cc84d27bc323353248aae5 /plugins/NewStory
parent1039b2829a264280493ba0fa979214fe024dc70c (diff)
DWORD -> uint32_t
Diffstat (limited to 'plugins/NewStory')
-rw-r--r--plugins/NewStory/src/history.cpp4
-rw-r--r--plugins/NewStory/src/history_array.cpp2
-rw-r--r--plugins/NewStory/src/history_control.cpp2
-rw-r--r--plugins/NewStory/src/options.cpp2
-rw-r--r--plugins/NewStory/src/utils.cpp2
-rw-r--r--plugins/NewStory/src/utils.h2
6 files changed, 7 insertions, 7 deletions
diff --git a/plugins/NewStory/src/history.cpp b/plugins/NewStory/src/history.cpp
index 96357f5366..1f07f11105 100644
--- a/plugins/NewStory/src/history.cpp
+++ b/plugins/NewStory/src/history.cpp
@@ -129,7 +129,7 @@ class CHistoryDlg : public CDlgBase
bool disableTimeTreeChange = false;
// window flags
- DWORD m_dwOptions = 0;
+ uint32_t m_dwOptions = 0;
// toolbar buttons
HWND m_hwndBtnToolbar[TBTN_COUNT];
@@ -878,7 +878,7 @@ public:
/*
GetWindowRect(GetDlgItem(m_hwnd, LOWORD(wParam)), &rc);
- // DWORD itemID = 0;
+ // uint32_t itemID = 0;
bool doFilter = true;
switch (TrackPopupMenu(GetSubMenu(hMenu, 1), TPM_RETURNCMD, rc.left, rc.bottom, 0, m_hwnd, NULL))
{
diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp
index 3b289dc110..6ce9ed2116 100644
--- a/plugins/NewStory/src/history_array.cpp
+++ b/plugins/NewStory/src/history_array.cpp
@@ -66,7 +66,7 @@ bool ItemData::isLink(POINT pt) const
CHARFORMAT2 cf = {};
cf.cbSize = sizeof(cf);
cf.dwMask = CFM_LINK;
- DWORD res = MTextSendMessage(0, data, EM_GETCHARFORMAT, SCF_SELECTION, LPARAM(&cf));
+ uint32_t res = MTextSendMessage(0, data, EM_GETCHARFORMAT, SCF_SELECTION, LPARAM(&cf));
return ((res & CFM_LINK) && (cf.dwEffects & CFE_LINK)) || ((res & CFM_REVISED) && (cf.dwEffects & CFE_REVISED));
}
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp
index 9417843ffc..bf292ba1b7 100644
--- a/plugins/NewStory/src/history_control.cpp
+++ b/plugins/NewStory/src/history_control.cpp
@@ -122,7 +122,7 @@ struct NewstoryListData : public MZeroedObject
int fontid, colorid;
item->getFontColor(fontid, colorid);
- DWORD dwStyle = WS_CHILD | WS_BORDER | ES_MULTILINE | ES_AUTOVSCROLL;
+ uint32_t dwStyle = WS_CHILD | WS_BORDER | ES_MULTILINE | ES_AUTOVSCROLL;
if (bReadOnly)
dwStyle |= ES_READONLY;
diff --git a/plugins/NewStory/src/options.cpp b/plugins/NewStory/src/options.cpp
index 1daf9e065e..ca65c3654b 100644
--- a/plugins/NewStory/src/options.cpp
+++ b/plugins/NewStory/src/options.cpp
@@ -90,7 +90,7 @@ public:
DBEVENTINFO dbei = {};
dbei.pBlob = (uint8_t *)"The quick brown fox jumps over the lazy dog";
- dbei.cbBlob = (DWORD)strlen((char *)dbei.pBlob);
+ dbei.cbBlob = (uint32_t)strlen((char *)dbei.pBlob);
dbei.flags = DBEF_TEMPORARY;
dbei.eventType = EVENTTYPE_MESSAGE;
dbei.timestamp = time(0);
diff --git a/plugins/NewStory/src/utils.cpp b/plugins/NewStory/src/utils.cpp
index a112d23514..4102ab3887 100644
--- a/plugins/NewStory/src/utils.cpp
+++ b/plugins/NewStory/src/utils.cpp
@@ -1,6 +1,6 @@
#include "stdafx.h"
-DWORD toggleBit(DWORD dw, DWORD bit)
+uint32_t toggleBit(uint32_t dw, uint32_t bit)
{
if (dw & bit)
return dw & ~bit;
diff --git a/plugins/NewStory/src/utils.h b/plugins/NewStory/src/utils.h
index 3b558bda94..903134dc4b 100644
--- a/plugins/NewStory/src/utils.h
+++ b/plugins/NewStory/src/utils.h
@@ -1,4 +1,4 @@
-DWORD toggleBit(DWORD dw, DWORD bit);
+uint32_t toggleBit(uint32_t dw, uint32_t bit);
bool CheckFilter(wchar_t *buf, wchar_t *filter);
void CopyText(HWND hwnd, const wchar_t *text);