This commit is contained in:
DirtPiper
2018-10-22 14:00:31 -04:00
parent c5485fbf55
commit bd37f8e22d

View File

@@ -1672,7 +1672,7 @@ int main(int argc, char** argv) {
PropGrid_ShowToolTips(propGrid, TRUE); PropGrid_ShowToolTips(propGrid, TRUE);
PropGrid_ShowPropertyDescriptions(propGrid, TRUE); PropGrid_ShowPropertyDescriptions(propGrid, TRUE);
PropGrid_ExpandAllCatalogs(propGrid); PropGrid_ExpandAllCatalogs(propGrid);
PropGrid_Enable(propGrid,true); PropGrid_Enable(propGrid,true);
HWND hwndMain = CreateWindowEx( HWND hwndMain = CreateWindowEx(
WS_EX_ACCEPTFILES, WS_EX_ACCEPTFILES,
"mainHWND", "mainHWND",
@@ -1693,11 +1693,9 @@ PropGrid_Enable(propGrid,true);
MessageBox(NULL, "Failed to create HWND", (PlaceholderName + " Crash").c_str() , MB_OK); MessageBox(NULL, "Failed to create HWND", (PlaceholderName + " Crash").c_str() , MB_OK);
return 0; return 0;
} }
SendMessage(hwndMain, WM_SETICON, ICON_BIG,(LPARAM)LoadImage(GetModuleHandle(NULL), (LPCSTR)MAKEINTRESOURCEW(IDI_ICON1), IMAGE_ICON, 0, 0, LR_DEFAULTCOLOR | LR_DEFAULTSIZE)); SendMessage(hwndMain, WM_SETICON, ICON_BIG,(LPARAM)LoadImage(GetModuleHandle(NULL), (LPCSTR)MAKEINTRESOURCEW(IDI_ICON1), IMAGE_ICON, 0, 0, LR_DEFAULTCOLOR | LR_DEFAULTSIZE));
Demo demo = Demo(settings,hwndMain); Demo demo = Demo(settings,hwndMain);
demo.run(); demo.run();
} }