Click here to Skip to main content
15,891,730 members
Home / Discussions / C#
   

C#

 
GeneralRe: Creating Dataset Pin
Heath Stewart13-May-04 11:21
protectorHeath Stewart13-May-04 11:21 
GeneralSort TreeView items by different logic Pin
Gian13-May-04 5:13
Gian13-May-04 5:13 
GeneralRe: Sort TreeView items by different logic Pin
Heath Stewart13-May-04 8:56
protectorHeath Stewart13-May-04 8:56 
GeneralRe: Sort TreeView items by different logic Pin
Gian16-May-04 22:02
Gian16-May-04 22:02 
GeneralRe: Sort TreeView items by different logic Pin
Heath Stewart17-May-04 3:20
protectorHeath Stewart17-May-04 3:20 
GeneralRe: Sort TreeView items by different logic Pin
Gian17-May-04 4:58
Gian17-May-04 4:58 
GeneralRe: Sort TreeView items by different logic Pin
Heath Stewart17-May-04 5:13
protectorHeath Stewart17-May-04 5:13 
GeneralRe: Sort TreeView items by different logic Pin
Gian17-May-04 5:35
Gian17-May-04 5:35 
yeah, a node with 2 children ones. i've tested it with a messagebox and i'm sure it's the right node.

the function is

<br />
public void Sort(TreeNode parent, TreeViewSortCallback callback, bool ascending)<br />
{<br />
TVSORTCB sort = new TVSORTCB();<br />
sort.TreeItemHandle = parent.Handle;<br />
sort.Callback = callback;<br />
sort.ExtraData = new IntPtr(ascending ? 0 : 1);<br />
IntPtr hWnd = this.Handle;<br />
SendMessage(hWnd, 4373, IntPtr.Zero, ref sort);<br />
}<br />


I'm sure that it's the right call because, like i've said, i return -1 in the Compare function, the 2 nodes are inverted. Maybe there's some style of the TreeControl to set or similar?
GeneralRe: Sort TreeView items by different logic Pin
Heath Stewart17-May-04 6:17
protectorHeath Stewart17-May-04 6:17 
GeneralRe: Sort TreeView items by different logic Pin
Gian17-May-04 23:16
Gian17-May-04 23:16 
GeneralRe: Sort TreeView items by different logic Pin
Heath Stewart18-May-04 3:37
protectorHeath Stewart18-May-04 3:37 
GeneralRe: Sort TreeView items by different logic Pin
Gian19-May-04 5:25
Gian19-May-04 5:25 
Generalhelp with winuser.h Pin
HappyPaws13-May-04 4:28
HappyPaws13-May-04 4:28 
GeneralRe: help with winuser.h Pin
Judah Gabriel Himango13-May-04 6:36
sponsorJudah Gabriel Himango13-May-04 6:36 
GeneralRe: help with winuser.h Pin
Heath Stewart13-May-04 8:37
protectorHeath Stewart13-May-04 8:37 
GeneralRe: help with winuser.h Pin
Heath Stewart13-May-04 8:37
protectorHeath Stewart13-May-04 8:37 
GeneralRe: help with winuser.h Pin
HappyPaws14-May-04 1:37
HappyPaws14-May-04 1:37 
Generalregd DataGrids Pin
karteek13-May-04 4:06
karteek13-May-04 4:06 
Generalregd dialogs Pin
karteek13-May-04 3:41
karteek13-May-04 3:41 
GeneralRe: regd dialogs Pin
Heath Stewart13-May-04 3:47
protectorHeath Stewart13-May-04 3:47 
GeneralRe: regd dialogs Pin
karteek13-May-04 4:07
karteek13-May-04 4:07 
GeneralRe: regd dialogs Pin
Heath Stewart13-May-04 4:51
protectorHeath Stewart13-May-04 4:51 
GeneralCancel more than a click Pin
sreejith ss nair13-May-04 2:55
sreejith ss nair13-May-04 2:55 
GeneralRe: Cancel more than a click Pin
Heath Stewart13-May-04 3:19
protectorHeath Stewart13-May-04 3:19 
GeneralDES Crypto help Pin
yyzzababa13-May-04 2:43
yyzzababa13-May-04 2:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.