TreeView Controls - HTREEVIEW

Posted by nXqd on Stack Overflow See other posts from Stack Overflow or by nXqd
Published on 2010-04-17T11:52:45Z Indexed on 2010/04/17 12:03 UTC
Read the original article Hit count: 423

Filed under:
|

I'm new to win32 API programming and I try to understand source code of treeview from codeproject.

But I really don't understand this :

BOOL TreeView::DoNotify(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
    // blah blah
    HTREEVIEW Selected = (HTREEITEM)SendDlgItemMessage(hWnd,ID_TREE,TVM_GETNEXTITEM,TVGN_CARET,(LPARAM)Selected);
    // halb halb
}

It doesn't work ( Selected is used without initializing) until I declare Selected as global variable.

Thanks for reading this and I need your help .

© Stack Overflow or respective owner

Related posts about win32

Related posts about winapi