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

View file

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