>
> - [idea] To avoid confusion among foobar users new to G-Force, you
> could add a pseudo preferences page under Visualizations, that tells
> people were to look for the real configuration.
Where should I look for example code? I'd prefer to just add a simple message (or a URL link) to the local HTML docs.
[a href="index.php?act=findpost&pid=258788"][{POST_SNAPBACK}][/a]
Something like this sould do the work (a template for config page):
class gforce_config : public config
{
static BOOL CALLBACK ConfigProc(HWND wnd, UINT msg, WPARAM wp, LPARAM lp)
{
// ...
}
public:
virtual HWND create(HWND parent)
{
// create child window here (IDD_CONFIG should have WS_CHILD property, no border and size 330x290)
return uCreateDialog(IDD_CONFIG, parent, (DLGPROC)ConfigProc);
}
virtual const char *get_name() {return "G-Force";}
virtual const char *get_parent_name() {return "Visualizations";}
};
static service_factory_single_t<config, gforce_config> foo;