Austin Lund <[email protected]> wrote: > This unconditional initialization isn't what windows does. Windows > only creates something at GetWindowLongPtr(hwnd,0) when WM_NCCREATE is > called. I'm not sure how to start to write a test for that, but I > have an app which uses hooks to show this (see below).
Then doing simple
if (!editor)
{
if (msg == WM_NCCREATE)
{
/* initialize things */
return;
}
else
return DefWindowProc();
}
should be acceptable.
--
Dmitry.
