diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-06 01:21:08 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-06 01:21:08 +0200 |
commit | cf8707bf2ede99d8543d806355eee088bdc1376b (patch) | |
tree | 0f1ffc52906d9f66f75631bd97dfb0dcf91989ad /c/win.cpp | |
parent | c0024748e8ff2f46e5d37a054fa349f24ddc497f (diff) | |
download | EpisodeBrowser-cf8707bf2ede99d8543d806355eee088bdc1376b.tar.gz |
Use typedefs when interacting with Win32 API.
It's not like they're ever going to change the definition of
WORD (knock on wood) -- but I guess it's proper to use them as if
their definitions might change.
Diffstat (limited to 'c/win.cpp')
-rw-r--r-- | c/win.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -65,7 +65,7 @@ Library::~Library() FreeLibrary(m_hModule); } -int EBMessageBox(const wchar_t* const wszText, const wchar_t* const wszCaption, const unsigned uType) +int EBMessageBox(const wchar_t* const wszText, const wchar_t* const wszCaption, const UINT uType) { extern HWND g_hWnd; @@ -97,7 +97,7 @@ int EBMessageBox(const wchar_t* const wszText, const wchar_t* const wszCaption, return r; } -int GetRelativeCursorPos(HWND hWnd, POINT* pt) +int GetRelativeCursorPos(const HWND hWnd, POINT* const pt) { RECT rc; if (!GetClientRect(hWnd, &rc)) return 0; |