Update of /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/visual/headers/win
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31751/adobe-source/adobe/test/visual/headers/win
Modified Files:
metrics.hpp ui_core_implementation.hpp
Log Message:
Visual Styles are enabled by default on Windows XP, and controls appear correctly on tabs, etc. A resource file has been added, and the generated exe now has the Adobe Begin icon.
The following items still need to be completed on the Windows implementation of ui-core before it reaches parity with the Mac implementation:
- slider_t needs to report changes, and actually set it's value.
- progress_bar_t also needs work.
- link_t's event mechanism should be looked at, it may not be painting when required.
Index: metrics.hpp
===================================================================
RCS file: /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/visual/headers/win/metrics.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** metrics.hpp 2 Apr 2005 00:45:21 -0000 1.2
--- metrics.hpp 8 Apr 2005 21:03:50 -0000 1.3
***************
*** 123,126 ****
--- 123,144 ----
virtual bool get_margins(int widget_type, MARGINS& out_margins) const = 0;
//
+ /// Return true if visual styles are currently in use, false if they
+ /// are not being used.
+ ///
+ /// \return true if visual styles are in use, false otherwise.
+ //
+ virtual bool using_styles() const = 0;
+ //
+ /// Use the current style to draw the background of the parent control
+ /// of the given window using the given DC. This function is useful for
+ /// drawing the background of controls which appear on top of tab controls,
+ /// or other places where the color isn't regulation.
+ ///
+ /// \param window the window to draw the parent background of.
+ /// \param dc the DC to draw with. This DC does not have to be
+ /// drawing onto the given window.
+ //
+ virtual void draw_parent_background(HWND window, HDC dc) = 0;
+ //
/// Before any of the other functions can be called, the theme data must be
/// loaded from the window. This function should also be called any time the
Index: ui_core_implementation.hpp
===================================================================
RCS file: /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/visual/headers/win/ui_core_implementation.hpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** ui_core_implementation.hpp 5 Apr 2005 05:46:04 -0000 1.8
--- ui_core_implementation.hpp 8 Apr 2005 21:03:50 -0000 1.9
***************
*** 552,560 ****
void initialize( const RECT* bounds,
! bool is_vertical,
! slider_style_t style,
! long num_tick_marks);
! virtual rectangle_t best_bounds();
! void set_bounds(const point_t& position, const rectangle_t& geometry);
void set_min_value(long min_value);
void set_max_value(long max_value);
--- 552,559 ----
void initialize( const RECT* bounds,
! bool is_vertical,
! slider_style_t style,
! long num_tick_marks);
! virtual rectangle_t best_bounds();
void set_min_value(long min_value);
void set_max_value(long max_value);
|