|
From: Ralph T. <ra...@us...> - 2005-04-04 23:33:48
|
Update of /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/visual/sources/win In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8573/adobe-source/adobe/test/visual/sources/win Modified Files: display.cpp ui_core_implementation.cpp Log Message: Event handling in Win32 has been rewritten. Most of the custom window procedures have been removed to allow for a more traditional event handling mechanism. I will add modifiers in a later commit, as I am still experimenting with the best way to capture modifier events. Index: display.cpp =================================================================== RCS file: /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/visual/sources/win/display.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** display.cpp 19 Mar 2005 00:16:44 -0000 1.1 --- display.cpp 4 Apr 2005 23:32:25 -0000 1.2 *************** *** 125,135 **** HWND parent_view(unwrap(parent)); - LONG style(::GetWindowLongPtr(element, GWL_STYLE)); - - style |= WS_CHILD; - style &= ~WS_POPUP; - - if (::SetWindowLongPtr(element, GWL_STYLE, style) == 0) ADOBE_REQUIRE_STATUS(::GetLastError()); - if (::SetParent(element, parent_view) == 0) ADOBE_REQUIRE_STATUS(::GetLastError()); --- 125,128 ---- Index: ui_core_implementation.cpp =================================================================== RCS file: /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/visual/sources/win/ui_core_implementation.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** ui_core_implementation.cpp 4 Apr 2005 16:43:34 -0000 1.8 --- ui_core_implementation.cpp 4 Apr 2005 23:32:25 -0000 1.9 *************** *** 24,27 **** --- 24,28 ---- #include <iostream> #include <ctime> + #include <map> /****************************************************************************************************/ *************** *** 48,52 **** { DWORD error(::GetLastError()); [...1454 lines suppressed...] template <> display_t::position_t insert<button_t>(display_t& display, display_t::position_t& parent, button_t& element) --- 4798,4805 ---- /* Non-default specialization for button_t */ ! //ADOBE_VIEW_FOR_ELEMENT_BOILERPLATE_SPECIALIZATION(button_t); + //ADOBE_VIEW_FOR_ELEMENT_AND_INSERT_BOILERPLATE_SPECIALIZATION(button_t); + /* template <> display_t::position_t insert<button_t>(display_t& display, display_t::position_t& parent, button_t& element) *************** *** 4538,4541 **** --- 4823,4827 ---- return result; } + */ /****************************************************************************************************/ |