More detailed Messages.

svn path=/trunk/; revision=25180
This commit is contained in:
Maarten Bosma
2006-12-16 11:57:07 +00:00
parent 1e657a7c38
commit af95c99c2e
+9 -1
View File
@@ -201,7 +201,15 @@ LRESULT CALLBACK WndProc (HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
SelectedApplication = NULL;
struct Category* Category = (struct Category*) ((LPNMTREEVIEW)lParam)->itemNew.lParam;
DisplayApps (hApps, Category);
ShowMessage(Category->Name, Category->Children ? L"Please selcect a subcategory" : L"Please selcet a application");
if(Category->Children && !Category->Apps)
ShowMessage(Category->Name, L"Please choose a subcategory");
else if(!Category->Children && Category->Apps)
ShowMessage(Category->Name, L"Please choose a applcations");
else if(Category->Children && Category->Apps)
ShowMessage(Category->Name, L"Please choose a application or a subcategory");
else
ShowMessage(Category->Name, L"Sorry, there no applications in this category yet. You can help and add more applications.");
}
else if(data->hwndFrom == hApps)
{