summaryrefslogtreecommitdiff
path: root/embedserv/source
diff options
context:
space:
mode:
Diffstat (limited to 'embedserv/source')
-rw-r--r--embedserv/source/embed/syswinwrapper.cxx8
-rw-r--r--embedserv/source/inc/syswinwrapper.hxx4
2 files changed, 6 insertions, 6 deletions
diff --git a/embedserv/source/embed/syswinwrapper.cxx b/embedserv/source/embed/syswinwrapper.cxx
index 303f49a8f347..a71b9ef2249d 100644
--- a/embedserv/source/embed/syswinwrapper.cxx
+++ b/embedserv/source/embed/syswinwrapper.cxx
@@ -186,7 +186,7 @@ CHatchWin::~CHatchWin()
*
* Parameters:
* hWndParent HWND of the parent of this window
- * uID UINT identifier for this window (send in
+ * uID WORD identifier for this window (send in
* notifications to associate window).
* hWndAssoc HWND of the initial associate.
*
@@ -194,14 +194,14 @@ CHatchWin::~CHatchWin()
* BOOL TRUE if the function succeeded, FALSE otherwise.
*/
-BOOL CHatchWin::Init(HWND hWndParent, UINT uID, HWND hWndAssoc)
+BOOL CHatchWin::Init(HWND hWndParent, WORD uID, HWND hWndAssoc)
{
m_hWndParent = hWndParent;
m_hWnd=CreateWindowEx(
WS_EX_NOPARENTNOTIFY, SZCLASSHATCHWIN
, SZCLASSHATCHWIN, WS_CHILD | WS_CLIPSIBLINGS
- | WS_CLIPCHILDREN, 0, 0, 100, 100, hWndParent, (HMENU)uID
- , m_hInst, this);
+ | WS_CLIPCHILDREN, 0, 0, 100, 100, hWndParent
+ , reinterpret_cast<HMENU>(UINT_PTR(uID)), m_hInst, this);
m_uID=uID;
m_hWndAssociate=hWndAssoc;
diff --git a/embedserv/source/inc/syswinwrapper.hxx b/embedserv/source/inc/syswinwrapper.hxx
index 422dff9c3a4a..9814248e5d55 100644
--- a/embedserv/source/inc/syswinwrapper.hxx
+++ b/embedserv/source/inc/syswinwrapper.hxx
@@ -146,7 +146,7 @@ protected:
int m_dBorder;
int m_dBorderOrg;
- UINT m_uID;
+ WORD m_uID;
HWND m_hWndParent;
HWND m_hWndKid;
HWND m_hWndAssociate;
@@ -157,7 +157,7 @@ protected:
CHatchWin(HINSTANCE,const DocumentHolder*);
~CHatchWin();
- BOOL Init(HWND, UINT, HWND);
+ BOOL Init(HWND, WORD, HWND);
HWND HwndAssociateSet(HWND);
HWND HwndAssociateGet();