Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CTreeView and its View Control Style

Status
Not open for further replies.

Xarris

Programmer
Mar 21, 2002
3
GR
Hello
From the function SetWindowLong(HWND hWnd, int nIndex,LONG dwNewLong), how can I get a handle of window so that my Tree View Control to have the TVS_HASBUTTONS style. I get this View Control, from a CTreeView object.
Thanks
 
To get the handle to your CTreeView object, I think you can just use GetHandle();

CTreeView NameOfTreeView;

HWND HandleToMyTreeView = NameOfTreeView.GetHandle();

Is this what you were wanting?

Niky Williams
Lead Engineer
NTS Marketing, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top