flat assembler
Message board for the users of flat assembler.

Index > Windows > ListView Problem

Author
Thread Post new topic Reply to topic
AbsolutelyN00b



Joined: 30 Sep 2005
Posts: 2
Location: Budapest
AbsolutelyN00b
Hi everyone!
I have sum problems with listview extended styles. E. g. I can't make a listview which can selects a full row.
Extended style can be set as the last param of dialogitem, isn't it? Can anyone help me?


This is how I tried
Code:
resource dialogs,\
           ID_DIALOG,LANG_HUNGARIAN+SUBLANG_DEFAULT,dialog1

  dialog dialog1,'Memory',100,100,225,150,WS_CAPTION+WS_MINIMIZEBOX+WS_POPUP+WS_SYSMENU+DS_MODALFRAME+DS_LOCALEDIT
    dialogitem   'SysListView32','',ID_VIEW1,10,10,200,65,WS_VISIBLE+WS_BORDER+LVS_REPORT+LVS_SINGLESEL,LVS_EX_FULLROWSELECT
    dialogitem   'BUTTON','Get Memory',ID_GETSTATS,75,100,75,15,WS_VISIBLE+BS_DEFPUSHBUTTON
    dialogitem   'EDIT','',ID_HELP,5,100,50,12,0
  enddialog    
Post 30 Sep 2005, 15:44
View user's profile Send private message MSN Messenger Reply with quote
Vasilev Vjacheslav



Joined: 11 Aug 2004
Posts: 392
Vasilev Vjacheslav
i set extended styles for listview in this way:

Code:
        ; at WM_INITDIALOG
        stdcall lv_init,[hWnd],ID_LISTVIEW,LVS_EX_FULLROWSELECT+LVS_EX_CHECKBOXES

  proc  lv_init, lpWnd,lpCtlID,lpMask
        pushad
        invoke  SendDlgItemMessage,[lpWnd],[lpCtlID],LVM_SETEXTENDEDLISTVIEWSTYLE,NULL,[lpMask]
        popad
        ret
  endp
    
Post 30 Sep 2005, 16:13
View user's profile Send private message Reply with quote
AbsolutelyN00b



Joined: 30 Sep 2005
Posts: 2
Location: Budapest
AbsolutelyN00b
Thanks a lot:)
And thanks for answering fast as well
Post 30 Sep 2005, 21:31
View user's profile Send private message MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.