mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 18:43:30 +00:00
Dmitry Philippov: GCC 4 compiling fixes for PackMgr and tests/wm_paint
svn path=/trunk/; revision=23985
This commit is contained in:
parent
dd77d1676b
commit
249e8c91ba
2 changed files with 6 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue