Hey,
Digging up this old thread I see that your first example does not match the code in GapiDraw 3.6. GapiDraw 3.6b does not have any "#ifdef _WIN32_WC" encapsulating the if (m_bAppShouldMinimize).
Can you please elaborate this one?
Will not make it into 3.7, but can make a quick patch shortly if it's needed.
Cheers
Johan