Made listeners use heap

This commit is contained in:
Vulpovile
2021-03-08 23:52:10 -08:00
parent 20afd874dc
commit 3935a7072e
11 changed files with 35 additions and 91 deletions

View File

@@ -146,24 +146,6 @@ LRESULT CALLBACK G3DProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
}
LRESULT CALLBACK MenuProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
Application *app = (Application *)GetWindowLongPtr(hwnd, GWL_USERDATA);
if (app==NULL)
{
return DefWindowProc(hwnd, msg, wParam, lParam);
}
switch(msg)
{
default:
{
return DefWindowProc(hwnd, msg, wParam, lParam);
}
}
return 0;
}
int main(int argc, char** argv) {
try{
hresult = OleInitialize(NULL);
@@ -206,8 +188,6 @@ int main(int argc, char** argv) {
return false;
if (!createWindowClass("G3DWindow",G3DProc,hThisInstance))
return false;
if (!createWindowClass("MenuWindow",MenuProc,hThisInstance))
return false;
HWND hwndMain = CreateWindowEx(
WS_EX_APPWINDOW,