I can't find a solution anywhere... Currently i have the following:
if(!wxEntryStart(hInstance, hPrevInstance, lpCmdLine, nCmdShow ))
{
return -1;
}
wxTheApp->CallOnInit();
MSG msg;
while (true)
{
if (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
{
if(msg.message == WM_QUIT) break;
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
wxEntryCleanup();
But if i press the close button, nothing happens...