2016-04-21 11:55:09 -05:00
|
|
|
// 21 april 2016
|
|
|
|
|
|
|
|
// events.cpp
|
|
|
|
extern BOOL runWM_COMMAND(WPARAM wParam, LPARAM lParam, LRESULT *lResult);
|
|
|
|
extern BOOL runWM_NOTIFY(WPARAM wParam, LPARAM lParam, LRESULT *lResult);
|
|
|
|
extern BOOL runWM_HSCROLL(WPARAM wParam, LPARAM lParam, LRESULT *lResult);
|
|
|
|
extern void issueWM_WININICHANGE(WPARAM wParam, LPARAM lParam);
|
2016-04-21 17:03:52 -05:00
|
|
|
|
|
|
|
// utf16.cpp
|
|
|
|
extern WCHAR *toUTF16(const char *str);
|
|
|
|
extern char *toUTF8(const WCHAR *wstr);
|
|
|
|
extern WCHAR *strf(const WCHAR *format, ...);
|
|
|
|
extern WCHAR *vstrf(const WCHAR *format, va_list ap);
|
|
|
|
extern WCHAR *debugstrf(const WCHAR *format, ..);
|
|
|
|
extern WCHAR *debugvstrf(const WCHAR *format, va_list ap);
|
2016-04-21 17:10:30 -05:00
|
|
|
extern char *LFtoCRLF(const char *lfonly);
|
|
|
|
extern void CRLFtoLF(const char *s);
|
2016-04-21 17:03:52 -05:00
|
|
|
|
|
|
|
// debug.cpp
|
|
|
|
#define debugargs const WCHAR *file, uintmax_t line, const WCHAR *file
|
|
|
|
extern HRESULT _logLastError(debugargs, const WCHAR *func, const WCHAR *s);
|
|
|
|
#define logLastError(s) _logLastError(L ## __FILE__, __LINE__, L ## __func__, s)
|
|
|
|
extern HRESULT _logHRESULT(debugargs, const WCHAR *s, HRESULT hr);
|
|
|
|
#define logHRESULT(s, hr) _logHRESULT(L ## __FILE__, __LINE__, L ## __func__, s, hr)
|
|
|
|
extern void _implbug(debugargs, const WCHAR *format, ...);
|
|
|
|
#define implbug(...) _implbug(L ## __FILE__, __LINE__, L ## __func__, __VA_LIST__)
|
2016-04-21 22:05:10 -05:00
|
|
|
|
|
|
|
// winutil.cpp
|
|
|
|
extern int windowClassOf(HWND hwnd, ...);
|
|
|
|
extern void mapWindowRect(HWND from, HWND to, RECT *r);
|
|
|
|
extern DWORD getStyle(HWND hwnd);
|
|
|
|
extern void setStyle(HWND hwnd, DWORD style);
|
|
|
|
extern DWORD getExStyle(HWND hwnd);
|
|
|
|
extern void setExStyle(HWND hwnd, DWORD exstyle);
|
|
|
|
extern void clientSizeToWindowSize(HWND hwnd, intmax_t *width, intmax_t *height, BOOL hasMenubar);
|
|
|
|
extern HWND parentOf(HWND child);
|
|
|
|
extern HWND parentToplevel(HWND child);
|