English
Forum

Treeview

 

Dieter
Zornow
I have me hiermal in a Treeview probiert, the The directories from the disk einliest
and the individual items abfragbar are. The code basiert weitestgehend on the Example of
Uwe (Pascal). this is Yes clever made what about me wished the wheel not not new invent.
the Example of Pascal has whom disadvantage, that it by the Assemblerroutinen not the
Windowsstyle 512 functions. XProfan but dummerweise with vielem this Style need to that
ordungungsgemäßen functions.
Dashalb have I the code something changed, a couple Sicherheiten what the You can of not
bound Laufwerken concerns and on Assembler waived. its almost ready, not yet
optimiert, but it's running.
there's a problem, that I not find can. XProfan crashes unregelmäßig ex, sometimes can
one clicking and clicking and it happens quite nothing. sometimes crashes it already to few Klicks
ex. is unerklärlich there Yes everything over The equal routines läüft.
I have it now given, there it accordingly useless is and the code begelegt. Perhaps finds
Yes someone out, as steady becomes. Error shine no present To his, there weder the + Edit
yet XPSE something To find fault with having.
in the moment runs it only under XProfan 11, there some, not plenty, of it is used.

6 kB
Hochgeladen:09/11/08
Downloadcounter91
Download
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
09/11/08  
 




Frank
Abbing
give You The PIDL really somewhere again spare?

such Abstürze occur often, if Structures The verkehrte Size own or with erneutem using before not entire deleted get.
 
09/11/08  
 




Dieter
Zornow
the can not his, there only over Profan not through API read becomes
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
09/12/08  
 




Frank
Abbing
can't his? So I see some on API in the INC, but if you mean...

~SHGetFileInfo(a&,0,SHF#,270,16393) -------------? Happen?: SHGFI_SMALLICON + SHGFI_PIDL

the created one PIDL-lever, and of my Erachtens to must You the enable.
 
09/12/08  
 




Dieter
Zornow
Yes you're right, 1 function gives one PIDL (SHGetSpecialFolderLocation), The others each only The Icons. the might but not the program disturbing, there the only each 1 x on the Programmanfang called becomes.
The function The you mean gives really too no PIDL back

SHGFI_PIDLIndicates that pszPath is the address of on ITEMIDLIST structure rather than a path name.

i think the trouble lying More with XProfan, because even if I me WinXP? to slam would and everything else correct runs, ought to the program ditto walk and not crash.
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
09/12/08  
 




Dieter
Zornow
i think I have whom Error zoned. its The function The whom Click the Cross allows. These need one but otherwise must one first directly whom entry You can and the entry fill, before The Klicks on Cross effect show. one need means here only slightly better then GEHTS, me falls but straight nothing more one.

this is the Übeltäter
CompileMarkSeparation
proc Getitem holt über das Kreuz

    parameters sel&
    declare hit#:dim hit#,16
    declare po#:dim po#,8
    clear hit#:clear po#
    GetCursorPos(po#)
    ScreenToClient(tv&,po#)
    Long hit#,0=Long(po#,0)
    Long hit#,4=Long(po#,4)
    Long hit#,8 = 8 Tvht_onitemindent
    Long hit#,12 = sel&
    var pos& = sendmessage(tv&,4369,0,hit#) TVM_HITTEST
    dispose hit#,po#
    return pos&

Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
09/12/08  
 




Frank
Abbing
therefore Yes my supposition in the vorvorhergehenden Posting. such unvermittelten Abstürze smell förmlich after a Speicherüberschreibung or falser Initialisierung. Perhaps too of/ one missing Sicherheitsabfrage, whether a API objectively the desired Result supplied has.
 
09/12/08  
 




Uwe
''Pascal''
Niemeier
Hello Dieter!

be I do not sure, where the Error liegt; The veröffendlichte demonstration is already something older...

with neueren versions (under XProfan 10) use I SubClassing, circa to the Message TVN_ITEMEXPANDINGW To fish.
If these appears, contains the 4. Parameter the WindowProc (LParam) a Pointer on a NMTREEVIEW-structure.
NMTREEVIEW becomes z.B. too with Selektion one Items uses and contains Info to that actually and to that before active Item.

The Stuktur exists roughly said a NMHDR-, two TVITEM- and of/ one POINT-structure
heavy vereinfacht and not run (!!) sähe the for XProfan 10 about so from:
CompileMarkSeparation
struct NMTREEVIEW=hwndFrom&,idFrom&,code&,action&,
maskO&,ItemO&,stateO&,stateMaskO&,TextO&,TextMaxO&,ImageO&,SelectedImageO&,ChildrenO&,ParamO&,
maskN&,ItemN&,stateN&,stateMaskN&,TextN&,TextMaxN&,ImageN&,SelectedImageN&,ChildrenN&,ParamN&,
x&,y&
--Die Bezeichnungen habe ich willkührlich gewählt: O=Old ; N=New
dim TvN#,NMTREEVIEW

proc DlgProc------------------------------------DlgProc-------------------------------------

    parameters wnd&,msg&,wparam&,lparam&

    if msg&=~WM_NOTIFY

        TvN#=lparam&

        if TvN#.Code&=~TVN_ITEMEXPANDINGW

            TvItem&=TvN#.ItemN&----TvItem&: Eintrag, dessen "+" geklickt wurde
            ---Weitere Aktionen, z.B. sendmessage(%hwnd,5000,0,0)

        endif

    endif

    return ~CallWindowProc(DlgProc&,wnd&,msg&,wparam&,lparam&)
    endproc------------------------------------------------------------------------------------n class=s2>-

ought to the clicked entry yet no Untereinträge having, go these even nachgeladen.
To testing incidentally with SendMessage(Tv&,~TVM_GETNEXTITEM,~TVGN_CHILD,Item&)
(gives the lever the 1. ChildItems back)

yet what: circa Events by SubClassing abzufragen, send I mostly from the WindowProc out a selbstdefinierte and as UserMessage announced Message ans Mainwindow,
around the WaitInput in the Haupteingabeschleife To durchbrechen.
dependent upon this Message (or ihren Parameters) then any activities triggered.

Universelles lauffähiges Snipped Have I in momentum unfortunately not to hand
hope it helps nevertheless

SeeYou
Pascal
 
09/15/08  
 




Dieter
Zornow
@Uwe,
thanks you, i'll it time try whether it what becomes. important is hold, that it under each Windowstyle runs.

Greeting

Dieter
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
09/15/08  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.962 Views

Untitledvor 0 min.
Member 862464104/17/24
RudiB.04/07/22
H.Brill01/04/22
Stephan Sonneborn04/12/12
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie