All kind time of days!
Faced a problem of program pushing node element TreeView in other application.
Who can prompt where an error?
nmh.code = NM_DBLCLK;
nmh.idFrom = (UINT_PTR) hItem;//hItem (variable type HTREEITEM) which needs to be pushed element TreeView program
nmh.hwndFrom = hwnd_stv;// element SysTreeView
:: SendMessageW (:: GetParent (hwnd_stv), WM_NOTIFY, nmh.idFrom, (LPARAM) &nmh);
And works nothing
Thankful in advance
So will not work, you cannot send this message to other application at all.
It contains structure NMHDR address in sending application to which storage at accepting application is not present
Besides, the code generally wrong - NMHDR is only a common part of all structures COMMCLL32, and to send you should not it, and its "successors" is is described in the description specific messages, NM_DBLCLK in this case.
Plus to it is structure is incorrectly filled. The size of structure in title is not filled in particular.
In general, all not so, and at you it hardly turns out generally.
You should study examples of applications from MSDN, working with specific from COMMCLL32, and at first to achieve operation with , local in the given application. Then to research already sending to the remote application.