1. Is it possible to wait until configuration of the plugin is loaded?
I'd like to access it ASAP (in initquit or WM_CREATE) without polling for a change in known value.
2. This code produces a window with title 'f'... Is there anything I can do to get whole title?
void initquit(bool is_init)
{
if (is_init)
{
uWNDCLASS wc;
memset(&wc, NULL, sizeof(wc));
wc.hInstance=core_api::get_my_instance();
wc.lpszClassName="FooTimerWindow";
wc.lpfnWndProc=TimerWindowProc;
uRegisterClass(&wc);
wnd_main=uCreateWindowEx(0, "FooTimerWindow", "foo_timer", WS_VISIBLE, 0, 0, 0, 0, core_api::get_main_window(), NULL, core_api::get_my_instance(), NULL);
}
else
{
UnregisterClass("FooTimerWindow", core_api::get_my_instance());
}
}
static initquit_simple meh(initquit);
Normally this window will be invisible anyway, but I'm curious about what causes the bug.
If placed in DLLMain without core_api calls, it also produces window with such title...
Changing API calls to plain Windows ones doesn't help too... Is it a compiler bug or have I done something wrong?
I'm using Visual C++ 6 Service Pack 5 Standard.