- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I use the following code in my program:
lvi%mask=LVIS_STATEIMAGEMASK
lvi%iItem=sz_list
lvi%iSubItem=0
lvi%state=INDEXTOSTATEIMAGEMASK(1)
ret = SendMessage (hwndlist,LVM_SETITEMSTATE,sz_list,LOC(lvi))
to check and uncheck my checkboxes.
But I get the following error:
Error: This name does not have a type, and must have an explicit type. [INDEXTOSTATEIMAGEMASK]
lvi%state=INDEXTOSTATEIMAGEMASK(1)
I also tried doing the following:
!DEC$ IF ndef ListView_SetCheckState
!DEC$ DEFINE ListView_SetCheckState(hwndLV, i, fCheck)
!DEC$ ListView_SetItemState(hwndLV, i,
INDEXTOSTATEIMAGEMASK((fCheck)+1), LVIS_STATEIMAGEMASK)
!DEC$ ENDIF
!DEC$ IF .NOT. DEFINED(INDEXTOSTATEIMAGEMASK )
!DEC$ DEFINE INDEXTOSTATEIMAGEMASK(i) ((i) << 12)
!DEC$
!DEC$ ENDIF
call ListView_SetItemState(hwndList,sz_list,INDEXTOSTATEIMAGEMASK((.TRUE.)+1), LVIS_STATEIMAGEMASK)
But I get the following error:
Error: This name does not have a type, and must have an explicit type. [INDEXTOSTATEIMAGEMASK]
call ListView_SetItemState(hwndList, sz_list, INDEXTOSTATEIMAGEMASK((fcheck)+1), LVIS_STATEIMAGEMASK)
Can someone tell me what the correct parameters are and how they should be defined.Where can I find samples of how these statements must be used? Thanks,
Archana.
I use the following code in my program:
lvi%mask=LVIS_STATEIMAGEMASK
lvi%iItem=sz_list
lvi%iSubItem=0
lvi%state=INDEXTOSTATEIMAGEMASK(1)
ret = SendMessage (hwndlist,LVM_SETITEMSTATE,sz_list,LOC(lvi))
to check and uncheck my checkboxes.
But I get the following error:
Error: This name does not have a type, and must have an explicit type. [INDEXTOSTATEIMAGEMASK]
lvi%state=INDEXTOSTATEIMAGEMASK(1)
I also tried doing the following:
!DEC$ IF ndef ListView_SetCheckState
!DEC$ DEFINE ListView_SetCheckState(hwndLV, i, fCheck)
!DEC$ ListView_SetItemState(hwndLV, i,
INDEXTOSTATEIMAGEMASK((fCheck)+1), LVIS_STATEIMAGEMASK)
!DEC$ ENDIF
!DEC$ IF .NOT. DEFINED(INDEXTOSTATEIMAGEMASK )
!DEC$ DEFINE INDEXTOSTATEIMAGEMASK(i) ((i) << 12)
!DEC$
!DEC$ ENDIF
call ListView_SetItemState(hwndList,sz_list,INDEXTOSTATEIMAGEMASK((.TRUE.)+1), LVIS_STATEIMAGEMASK)
But I get the following error:
Error: This name does not have a type, and must have an explicit type. [INDEXTOSTATEIMAGEMASK]
call ListView_SetItemState(hwndList, sz_list, INDEXTOSTATEIMAGEMASK((fcheck)+1), LVIS_STATEIMAGEMASK)
Can someone tell me what the correct parameters are and how they should be defined.Where can I find samples of how these statements must be used? Thanks,
Archana.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Fortran is not C. !DEC$ DEFINE is not a macro substitution feature.
Steve
Steve

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page