From a8e897c1ec7dc6d216fb29f1e84a2b0d5c41ded1 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 21 Apr 2016 12:55:09 -0400 Subject: [PATCH] Started rewriting ui_windows.h and uipriv_windows.h(pp). --- windows/ui_windows_new.h | 17 +++++++++++++++++ windows/uipriv_windows_new.hpp | 7 +++++++ 2 files changed, 24 insertions(+) create mode 100644 windows/ui_windows_new.h create mode 100644 windows/uipriv_windows_new.hpp diff --git a/windows/ui_windows_new.h b/windows/ui_windows_new.h new file mode 100644 index 00000000..e372339e --- /dev/null +++ b/windows/ui_windows_new.h @@ -0,0 +1,17 @@ +// 21 april 2016 + +// TODO document +_UI_EXTERN void uiWindowsRegisterWM_COMMANDHandler(HWND hwnd, BOOL (*handler)(uiControl *, HWND, WORD, LRESULT *), uiControl *c); +_UI_EXTERN void uiWindowsUnregisterWM_COMMANDHandler(HWND hwnd); + +// TODO document +_UI_EXTERN void uiWindowsRegisterWM_NOTIFYHandler(HWND hwnd, BOOL (*handler)(uiControl *, HWND, NMHDR *, LRESULT *), uiControl *c); +_UI_EXTERN void uiWindowsUnregisterWM_NOTIFYHandler(HWND hwnd); + +// TODO document +_UI_EXTERN void uiWindowsRegisterWM_HSCROLLHandler(HWND hwnd, BOOL (*handler)(uiControl *, HWND, WORD, LRESULT *), uiControl *c); +_UI_EXTERN void uiWindowsUnregisterWM_HSCROLLHandler(HWND hwnd); + +// TODO document +_UI_EXTERN void uiWindowsRegisterReceiveWM_WININICHANGE(HWND hwnd); +_UI_EXTERN void uiWindowsUnregisterReceiveWM_WININICHANGE(HWND hwnd); diff --git a/windows/uipriv_windows_new.hpp b/windows/uipriv_windows_new.hpp new file mode 100644 index 00000000..979589c2 --- /dev/null +++ b/windows/uipriv_windows_new.hpp @@ -0,0 +1,7 @@ +// 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);