Hello everybody. I am implementing preferences page for my plugin, and I can't understand what shoud I return from "instantiate" method... In all examples that I saw ATL is used (or something else, I'm not familiar with those libraries) and I have no clue how it works. But I know WinAPI quite well, so I would like to implement preferences dialog by myself using only win api...
Please help me. Here is problem code:
#include "..\SDK\foobar2000.h"
class preferences_page_handler: public preferences_page_v3
{
const char* get_name()
{
return "Deskband Controls";
}
GUID get_guid()
{
static const GUID g = { 0x5064d3a8, 0xf765, 0x4d85, { 0x8e, 0x45, 0x56, 0x4a, 0x3d, 0xd2, 0x77, 0x44 } };
return g;
}
GUID get_parent_guid()
{
return guid_display;
}
preferences_page_instance::ptr instantiate(HWND parent, preferences_page_callback::ptr callback)
{
return ? // What should I return here?
}
};
static preferences_page_factory_t<preferences_page_handler> foo_preferences_page_factory;