foobar2000 SDK  2015-08-03
Private Member Functions
preferences_page_instanceabstract

#include <preferences_page.h>

+ Inheritance diagram for preferences_page_instance:

Private Member Functions

virtual void apply ()=0
 
virtual FB2K_MAKE_SERVICE_INTERFACE(preferences_page_instance, service_base) public HWND get_wnd ()=0
 
virtual void reset ()=0
 

Additional Inherited Members

- Public Types inherited from service_base
typedef service_base t_interface
 
- Public Member Functions inherited from service_base
template<typename outPtr_t >
bool cast (outPtr_t &outPtr)
 
virtual int service_add_ref ()=0 throw ()
 
virtual bool service_query (service_ptr_t< service_base > &p_out, const GUID &p_guid)
 
template<class T >
bool service_query_t (service_ptr_t< T > &p_out)
 
virtual int service_release ()=0 throw ()
 
- Protected Member Functions inherited from service_base
 service_base ()
 
 ~service_base ()
 

Detailed Description

Since
1.0 Implements a preferences page instance.
Instantiated through preferences_page_v3::instantiate().
Note that the window will be destroyed by the caller before the last reference to the preferences_page_instance is released.
WARNING: misguided use of modal dialogs - or ANY windows APIs that might spawn such dialogs - may result in conditions when the owner dialog (along with your page) is destroyed somewhere inside your message handler, also releasing references to your object.
It is recommended to use window_service_impl_t<> from ATLHelpers to instantiate preferences_page_instances, or preferences_page_impl<> framework for your preferences_page code to cleanly workaround such cases.

Definition at line 113 of file preferences_page.h.

Member Function Documentation

virtual void preferences_page_instance::apply ( )
privatepure virtual

Applies preferences changes.

Implemented in CMyPreferences.

virtual FB2K_MAKE_SERVICE_INTERFACE (preferences_page_instance, service_base) public HWND preferences_page_instance::get_wnd ( )
privatepure virtual
Returns
the window handle.
virtual void preferences_page_instance::reset ( )
privatepure virtual

Resets this page's content to the default values. Does not apply any changes - lets user preview the changes before hitting "apply".

Implemented in CMyPreferences.


The documentation for this class was generated from the following file: