diff --git a/PropertyWindow.cpp b/PropertyWindow.cpp index 8ba668a..3d9ef2a 100644 --- a/PropertyWindow.cpp +++ b/PropertyWindow.cpp @@ -40,7 +40,10 @@ LRESULT CALLBACK PropProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) CHAR ListItem[256]; SendMessage((HWND) lParam, (UINT) CB_GETLBTEXT, (WPARAM) ItemIndex, (LPARAM) ListItem); MessageBox(hwnd, ListItem, "Item Selected", MB_OK); + if(ItemIndex != 0) + { //SetProperties(children.at(ItemIndex-1)); + } } } break; diff --git a/main.cpp b/main.cpp index 4d06d0e..e90e696 100644 --- a/main.cpp +++ b/main.cpp @@ -295,7 +295,7 @@ void deleteInstance() { if(g_selectedInstances.size() > 0) { - int undeletable = 0; + size_t undeletable = 0; while(g_selectedInstances.size() > undeletable) { if(g_selectedInstances.at(0) != dataModel && g_selectedInstances.at(0) != dataModel->getWorkspace()) @@ -1629,7 +1629,7 @@ int main(int argc, char** argv) { INITCOMMONCONTROLSEX icc; - WNDCLASSEX wcx; +// WNDCLASSEX wcx; /* Initialize common controls. Also needed for MANIFEST's */