Dmitry Philippov: GCC 4 compiling fixes for PackMgr and tests/wm_paint

svn path=/trunk/; revision=23985
This commit is contained in:
Aleksey Bragin 2006-09-09 11:41:24 +00:00
parent dd77d1676b
commit 249e8c91ba
2 changed files with 6 additions and 8 deletions

View file

@ -200,9 +200,7 @@ int SetIcon (int id, int icon)
item.iSelectedImage = icon;
item.mask = TVIF_IMAGE | TVIF_SELECTEDIMAGE;
TreeView_SetItem(hTree, &item);
return 1;
return (int)TreeView_SetItem(hTree, &item);
}
// Set the Icons
@ -320,9 +318,9 @@ LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
if(item != NULL)
{
// mark the one as seleacted
// mark the one as selected
SendMessage (hTree, TVM_SELECTITEM, TVGN_CARET, (LPARAM)item);
TreeView_EnsureVisible (hTree, item);
(BOOL)TreeView_EnsureVisible (hTree, item);
}
// create the context menu

View file

@ -90,10 +90,10 @@ LRESULT CALLBACK MainWndProc(HWND HWnd, UINT Msg, WPARAM WParam,
RUpdate.right, RUpdate.bottom);
// fill the client area with the background brush
//HBRUSH HBrush =
//reinterpret_cast<HBRUSH>
/*HBRUSH HBrush =
reinterpret_cast<HBRUSH>
(HBRUSH)(GetClassLong(HWnd, GCL_HBRBACKGROUND)
);
);*/
FillRect(Hdc, &RClient, NULL);
// render the persistent text