English
Forum

Iconproblem

 

Jörg
Sellmeyer
OK, the program crashes now not any more at Print ex, but the Icons in the first row spoil still the Druckbild.

10 kB
Hochgeladen:06/17/08
Downloadcounter121
Download
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
06/17/08  
 




Frank
Abbing
which Icons? show You me your Testcode...?
will be The last Postings tommorrow in a own Thread move.
 
06/17/08  
 



[offtopic]
Frank Abbing
will be The last Postings tommorrow in a own Thread move.

not any more necessary[/offtopic]
 
06/17/08  
 




Jörg
Sellmeyer
Hello Frank,
here have I time a code zusammengeschustert, the the trouble verdeutlicht:
CompileMarkSeparation
Proc BuildIL

    Parameters Color&
    Declare IL&
    Declare Icon&,Anzahl&,Datei$
    IL& = External(COMCTL32,ImageList_Create,16,16,254,3,3)
    External(COMCTL32,ImageList_SetBkColor,IL&,Color&)
    Datei$=Par$(0)
    Icon& = External(SHELL32,ExtractIconA,%hinstance,Addr(Datei$),0)
    External(COMCTL32,ImageList_AddIcon,IL&,Icon&)
    Icon& = External(SHELL32,ExtractIconA,%hinstance,Addr(Datei$),1)
    External(COMCTL32,ImageList_AddIcon,IL&,Icon&)
    Icon& = External(SHELL32,ExtractIconA,%hinstance,Addr(Datei$),2)
    External(COMCTL32,ImageList_AddIcon,IL&,Icon&)
    Return IL&

EndProc

Proc DruckeLV

    Parameters LV&,txt$
    LVPrintListview(LV&,%hwnd,%hinstance,80,120,200,120,200,3,3,Addr(txt$),0,67)

EndProc

Declare clv1#,clv2#,clvall#,lvitem#
Dim clv1#,256
Dim clv2#,64
Dim clvall#,1400
Dim lvitem#,292
Declare HLVDll&,LV&,B#
Declare ImageList&
hLVDll& = ImportDll(D:IncListView.dll,LV)
Print LVGetDllVersion()
LVInitMessages(%hwnd)
LV&=LVCreateListView(%hwnd,%hinstance,-1,$C3FDFF,-1,$21)
ImageList& = BuildIL($C3FDFF)
LVSetImageList(LV&,ImageList&)
LVShowListview(LV&,10,20,400,400)
Var Text$=Spalte
LVIColumn(LV&,Addr(Text$),60,1)
LVSetColumnAlignment(LV&,0,1)hier muß man nochmal nachhelfen, da sonst der Text nicht rechtsbündig angezeigt wird
LVIColumn(LV&,Addr(Text$),100,1)
LVIColumn(LV&,Addr(Text$),100,1)
LVIColumn(LV&,Addr(Text$),100,1)
AddString(LV&,01|Test|Test|Test)
AddString(LV&,02|Test|Test|Test)
LVSetCheckBoxState(LV&,0,1)
LVSetIcon(LV&,0,0)
LVSetIcon(LV&,1,1)
Var Button& = Create(Button,%hwnd,Drucken,450,20,60,24)
UserMessages 16

While 1

    Waitinput

    If %umessage = 16

        Break

    ElseIf Clicked(Button&)

        DruckeLV(LV&,Test)

    EndIf

Wend

LVEraseListview(LV&)
DestroyWindow(LV&)
LVCloseMessages(%hwnd)

If you now the whole druckst, go The Icons and the Text the first slot to right moved.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
06/18/08  
 




Frank
Abbing
can the trouble understand, Jörg. I look something there schief runs, thanks!
 
06/20/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

977 Views

Untitledvor 0 min.
Jörg Sellmeyer06/05/20
Andre Rohland01/06/15
Heiko Dix01/13/12
Juergen Baier12/28/10

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