flat assembler
Message board for the users of flat assembler.
Index
> IDE Development > Fresh Alpha 1.1 |
Author |
|
decard 12 Jan 2006, 13:24
I'm almost ready to release new Fresh version, with redesigned project manager. Now it is implemented as a single tree view. Unfortunatelly I'm having problems with this control. For example when user clicks with right mouse button on any tree view item, I send TVM_GETNEXTITEM message with TVGN_CARET to obtaing that item's handle. But it sometimes doesn't return valid item. For example, when I select "item 1" with left button, then right-click on "item 2", TVNG_CARET will return handle of "item 1". How can I solve this?
link to current version of Fresh: http://decard.net/fresh11.exe |
|||
12 Jan 2006, 13:24 |
|
pelaillo 12 Jan 2006, 19:44
Why about TVN_SELCHANGED? You obtain both itemOld and itemNew on NM_TREEVIEW.
|
|||
12 Jan 2006, 19:44 |
|
decard 23 Jan 2006, 22:02
maybe I wasn't clear enough when I tried to explain my problem, but I solved it myself.
I realised that when tree view item is clicked with right button, it isnt "selected" (although it is drawn with shadow). So TVN_SELCHANGED isn't send at all. I solved this by traping NM_RCLICK notification from Tree View. When it occurs I just change selection manually. |
|||
23 Jan 2006, 22:02 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.