Jump to content
Sign in to follow this  
Iczer

ListView Icons and item selection

Recommended Posts

Iczer

I have some ListView with icons in subitem and defined LVS_EX_FULLROWSELECT style. How I can make full row selection to not select icon image, so it's colours would be preserved?

demo:

#include <GuiListView.au3>
#include <FontConstants.au3>
#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <TreeViewConstants.au3>
#include <WindowsConstants.au3>
#include <GuiTreeView.au3>
#include <SQLite.au3>
#include <Math.au3>
#include <GDIPlus.au3>

$hDLL_Crypt32 = DllOpen("Crypt32.dll")
$hDLL_ntdll = DllOpen("ntdll.dll")

_GDIPlus_Startup()

Global Const $tagNMLVCACHEHINT = $tagNMHDR & ";int iFrom;int iTo"
Global $aListView, $hListView, $TreeView_SelTitle, $aTreeViewState[19][8] = [[18,"","","","","","",""]], $sSelectedTVIndex = 3
Opt("GUIOnEventMode", 1)

#Region ### START Koda GUI section ### Form=
Global $Form1 = GUICreate("Form1", 881, 516, -1, -1)
GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")
Global $TreeView = _GUICtrlTreeView_Create($Form1, 8, 16, 319, 489, BitOR($GUI_SS_DEFAULT_TREEVIEW,$WS_HSCROLL,$WS_VSCROLL, $TVS_SHOWSELALWAYS,$WS_HSCROLL,$WS_BORDER, $TVS_INFOTIP), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$TreeView_Root_1 = _GUICtrlTreeView_Add($TreeView, 0, "Root - 1")
_GUICtrlTreeView_SetIcon($TreeView, $TreeView_Root_1, "shell32.dll", 4)
$TreeView_Root_2 = _GUICtrlTreeView_Add($TreeView, 0, "Root - 2")
_GUICtrlTreeView_SetIcon($TreeView, $TreeView_Root_2, "shell32.dll", 4)
Global $ListView = GUICtrlCreateListView("Rowid|Name|Time|Category", 336, 16, 538, 486,  $LVS_SHOWSELALWAYS);,$LVS_SINGLESEL
_GUICtrlListView_SetExtendedListViewStyle( $ListView, BitOR($LVS_EX_DOUBLEBUFFER, $LVS_EX_FULLROWSELECT, $LVS_EX_SUBITEMIMAGES, $WS_EX_CLIENTEDGE, $WS_EX_STATICEDGE))

GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 0, 0)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 1, 250)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 2, 88)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 3, 112)
GUICtrlSetOnEvent(-1, "ListViewClick")

SetIconListToListView()

;------------------------------------------------------------------------------------------

  ; Get the font of the TreeView control
  ; Copied from the _GUICtrlGetFont example by KaFu
  ; See http://www.autoitscript.com/forum/index.php?showtopic=124526
  Local $hDC = _WinAPI_GetDC( $TreeView )
  $hFont = _SendMessage( $TreeView, $WM_GETFONT )
  Local $hObject = _WinAPI_SelectObject( $hDC, $hFont )
  Local $lvLOGFONT = DllStructCreate( $tagLOGFONT )
  DllCall( 'gdi32.dll', 'int', 'GetObjectW', 'ptr', $hFont, 'int', DllStructGetSize( $lvLOGFONT ), 'ptr', DllStructGetPtr( $lvLOGFONT ) )
  _WinAPI_SelectObject( $hDC, $hObject )
  _WinAPI_ReleaseDC( $TreeView, $hDC )
  $TreeViewFont = _WinAPI_CreateFontIndirect( $lvLOGFONT )
  Local $iWeight = BitOR( DllStructGetData( $lvLOGFONT, "Weight" ), $FW_BOLD )
  DllStructSetData( $lvLOGFONT, "Weight", $iWeight )
  $TreeViewFontBold = _WinAPI_CreateFontIndirect( $lvLOGFONT )

;------------------------------------------------------------------------------------------
Local $idTVContextMenu = GUICtrlCreateContextMenu(GUICtrlCreateDummy())
$hTVContextMenu = GUICtrlGetHandle($idTVContextMenu)
Local $idTVContextMenu_Refresh = GUICtrlCreateMenuItem("Refresh", $idTVContextMenu)
Local $idTVContextMenu_Rename = GUICtrlCreateMenuItem("Rename", $idTVContextMenu)
GUICtrlCreateMenuItem("", $idTVContextMenu) ; separator
Local $idTVContextMenu_MarkALLRead = GUICtrlCreateMenuItem("Mark ALL Items Read", $idTVContextMenu)
Local $idTVContextMenu_MarkALLUnRead = GUICtrlCreateMenuItem("Mark ALL Items UnRead", $idTVContextMenu)
;------------------------------------------------------------------------------------------


GUIRegisterMsg($WM_NOTIFY, "LWS_WM_NOTIFY")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
SubFunction_FillTreeView()

While 1
    Sleep(100)
WEnd

Func Form1Close()
    GUIRegisterMsg( $WM_NOTIFY, "" )
    ;
    DllClose($hDLL_Crypt32)
    DllClose($hDLL_ntdll)
    _GDIPlus_Shutdown()
    Exit
EndFunc
;==========================================================================================
Func ListViewClick()

EndFunc
;==========================================================================================
Func TreeView1Click()
    Local $sQuery, $aResult, $iRows, $iColumns
    Static Local $TreeView_SelTitlePRE = ""

    If $TreeView_SelTitlePRE == "" Then
        $TreeView_Selected = _GUICtrlTreeView_GetFirstChild($TreeView, $TreeView_Root_1)
        _GUICtrlTreeView_ClickItem($TreeView, $TreeView_Selected, "left")
    Else
        $TreeView_Selected = _GUICtrlTreeView_GetSelection($TreeView)
    EndIf
    $TreeView_SelTitle = _GUICtrlTreeView_GetText($TreeView, $TreeView_Selected)
    If $TreeView_SelTitle == $TreeView_SelTitlePRE Then
        Return
    Else
        $TreeView_SelTitlePRE = $TreeView_SelTitle
    EndIf

    ConsoleWrite($TreeView_SelTitle & @CRLF)

EndFunc
;==========================================================================================
Func SubFunction_FillTreeView()

    ConsoleWrite(" > $sSelected TV Index = " & $sSelectedTVIndex & @CRLF)
    ConsoleWrite(" > $sSelected TV Name = " & $aTreeViewState[$sSelectedTVIndex][5] & @CRLF)

    Local $idTVItem[$aTreeViewState[0][0]+1] = [$aTreeViewState[0][0]]
    _GUICtrlTreeView_BeginUpdate($TreeView)
    _GUICtrlTreeView_DeleteChildren($TreeView, $TreeView_Root_1)
    _GUICtrlTreeView_DeleteChildren($TreeView, $TreeView_Root_2)
    _GUICtrlTreeView_SetTextColor($TreeView, 0x77B5FE) ; color of additional text
    For $i = 1 To $aTreeViewState[0][0]
        $aTreeViewState[$i][0] = 3 ; icon num in "shell32.dll"
        $aTreeViewState[$i][1] = 0x000000 ; item text color
        $aTreeViewState[$i][2] = 0 ; text is bold (or not)
        $aTreeViewState[$i][3] = "some info" ; some additional text
        $aTreeViewState[$i][5] = String("item " & $i); item name
        Switch Mod($i,2)
            Case 0
                $idTVItem[$i] = _GUICtrlTreeView_AddChild($TreeView,$TreeView_Root_2, $aTreeViewState[$i][5])
            Case Else
                $idTVItem[$i] = _GUICtrlTreeView_AddChild($TreeView,$TreeView_Root_1, $aTreeViewState[$i][5])
        EndSwitch
        Switch Mod($i,3)
            Case 0
                $aTreeViewState[$i][2] = 0
            Case Else
                $aTreeViewState[$i][2] = 1
        EndSwitch
        _GUICtrlTreeView_SetItemParam($TreeView, $idTVItem[$i], $i)
        _GUICtrlTreeView_SetIcon($TreeView, $idTVItem[$i], "shell32.dll", $aTreeViewState[$i][0])
    Next
    _GUICtrlTreeView_Expand($TreeView, $TreeView_Root_1, True)
    _GUICtrlTreeView_EndUpdate($TreeView)

    _GUICtrlTreeView_ClickItem($TreeView, $idTVItem[$sSelectedTVIndex])

    SubFunction_FillListView()

EndFunc
;==========================================================================================
Func SubFunction_FillListView_Delayed()
    AdlibUnRegister("SubFunction_FillListView_Delayed")
    SubFunction_FillListView()
EndFunc
;==========================================================================================
Func SubFunction_FillListView()

    _GUICtrlListView_BeginUpdate ($ListView)
    _GUICtrlListView_DeleteAllItems ($ListView)
    For $i = 0 To 63
        $ret = _GUICtrlListView_AddItem($ListView, "RowID "&$i&": Col 0")
        ;ConsoleWrite($i & @TAB & "$ret = " & $ret & @CRLF)
        _GUICtrlListView_AddSubItem($ListView, $i, "Row "&$i&": Col 1", 1, Random(0,2,1));

        _GUICtrlListView_AddSubItem($ListView, $i, "Col 2", 2)

        _GUICtrlListView_AddSubItem($ListView, $i, "Col 3", 3)

    Next
    _GUICtrlListView_EndUpdate ($ListView)

EndFunc
;==========================================================================================
Func LWS_WM_NOTIFY( $hWnd, $iMsg, $wParam, $lParam )
    Local Static $tText = DllStructCreate( "wchar[512]" )
    Local Static $pText = DllStructGetPtr( $tText )
    Local Static $aResult, $iRows, $iFrom

    Local $tNMHDR, $hWndFrom, $iCode, $tInfo, $VKey
    $tNMHDR = DllStructCreate( $tagNMHDR, $lParam )
    $hWndFrom = HWnd( DllStructGetData( $tNMHDR, "hWndFrom" ) )
    $iCode = DllStructGetData( $tNMHDR, "Code" )

    Switch $hWndFrom
        Case $TreeView
            Switch $iCode

                Case $NM_CUSTOMDRAW
                    Local $tNMTVCUSTOMDRAW = DllStructCreate($tagNMTVCUSTOMDRAW, $lParam)
                    Local $dwDrawStage = DllStructGetData($tNMTVCUSTOMDRAW, "DrawStage")

                    Switch $dwDrawStage                                             ; Holds a value that specifies the drawing stage

                        Case $CDDS_PREPAINT
                            ; Before the paint cycle begins
                            Return $CDRF_NOTIFYITEMDRAW ; Notify the parent window of any item-related drawing operations

                        Case $CDDS_ITEMPREPAINT
                            ; Before painting an item
                            Local $hItemSpec  = DllStructGetData($tNMTVCUSTOMDRAW, "ItemSpec")          ; $hItemSpec = $hItem
                            Local $iItemState = DllStructGetData($tNMTVCUSTOMDRAW, "ItemState")
                            Local $iItemParam = DllStructGetData($tNMTVCUSTOMDRAW, "ItemParam")         ; ItemParam = index in array
                            Local $hDC        = DllStructGetData($tNMTVCUSTOMDRAW, "HDC")               ; Handle to the item's device context

                            $iSelected = DllCall( "user32.dll", "lresult", "SendMessageW", "hwnd", $TreeView, "uint", $TVM_GETITEMSTATE, "wparam", $hItemSpec, "lparam", $TVIS_SELECTED )[0] ; Selected state
                            If BitAND( $iSelected, $TVIS_SELECTED ) Then Return $CDRF_NOTIFYPOSTPAINT

                            ;If Not BitAnd( $iItemState, $CDIS_FOCUS ) Then
                                DllStructSetData( $tNMTVCUSTOMDRAW, "ClrText", $aTreeViewState[$iItemParam][1] )            ; Forecolor of item text
                                ;DllStructSetData( $tNMTVCUSTOMDRAW, "clrTextBk",$aTreeViewState[$iItemParam][1] )  ; Backcolor of item text

                                Local $tRECT = _GUICtrlTreeView_DisplayRectEx ( $TreeView, $hItemSpec, True)
                                DllStructSetData( $tRECT, "Left", DllStructGetData( $tRECT, "Right") + 7)
                                DllStructSetData( $tRECT, "Right", DllStructGetData( $tRECT, "Right") + 188)


                                _WinAPI_DrawText( $hDC, $aTreeViewState[$iItemParam][3], $tRECT, $DT_LEFT ) ; and background color of the device context.
                                _GUICtrlTreeView_SetBold ($TreeView, $hItemSpec, $aTreeViewState[$iItemParam][2])
                            ;Else
                                ;_GUICtrlTreeView_SetBold ($TreeView, $hItemSpec, $aTreeViewState[$iItemParam][2])
                            ;EndIf
                            Return $CDRF_NEWFONT ; $CDRF_NEWFONT must be returned after changing font or colors

                        Case $CDDS_ITEMPOSTPAINT
                            Local $hItemSpec  = DllStructGetData($tNMTVCUSTOMDRAW, "ItemSpec")          ; $hItemSpec = $hItem
                            Local $iItemState = DllStructGetData($tNMTVCUSTOMDRAW, "ItemState")
                            Local $iItemParam = DllStructGetData($tNMTVCUSTOMDRAW, "ItemParam")         ; ItemParam = index in array
                            Local $hDC        = DllStructGetData($tNMTVCUSTOMDRAW, "HDC")               ; Handle to the item's device context

                            Local $tRECT = _GUICtrlTreeView_DisplayRectEx( $TreeView, $hItemSpec, True)
                            DllStructSetData( $tRECT, "Left", DllStructGetData( $tRECT, "Right") + 7)
                            DllStructSetData( $tRECT, "Right", DllStructGetData( $tRECT, "Right") + 188)

                            ;DllStructSetData( $tNMTVCUSTOMDRAW, "ClrText", $aTreeViewState[$iItemParam][1] )            ; Forecolor of item text
                            DllCall( "gdi32.dll", "int", "SetTextColor", "handle", $hDC, "int", 0xFEB577 ) ; 0x77B5FE
                            _WinAPI_SelectObject( $hDC, $aTreeViewState[$iItemParam][2] ? $TreeViewFontBold : $TreeViewFont ) ; Bold/normal font
                            _WinAPI_DrawText( $hDC, $aTreeViewState[$iItemParam][3], $tRECT, $DT_LEFT ) ; and background color of the device context.

                           _GUICtrlTreeView_SetBold ($TreeView, $hItemSpec, $aTreeViewState[$iItemParam][2])

                           Return $CDRF_NEWFONT ; $CDRF_NEWFONT must be returned after changing font or colors

                    EndSwitch

                Case $TVN_SELCHANGEDA, $TVN_SELCHANGEDW
                    AdlibRegister("SubFunction_FillListView_Delayed",300)
                    _WinAPI_RedrawWindow($TreeView)

                Case $NM_RCLICK
                    Local $tMPos = _WinAPI_GetMousePos(True, $hWndFrom) ; ?????????? ???????????? ????????
                    Local $hItem = _GUICtrlTreeView_HitTestItem($hWndFrom, DllStructGetData($tMPos, 1), DllStructGetData($tMPos, 2)) ; ???????? ?????????? ??????
                    If $hItem <> -1 And $hItem <> 0x0 Then
                        DllCall("user32.dll", "int", "TrackPopupMenuEx", "hwnd", $hTVContextMenu, "int", 0, "int", MouseGetPos(0), "int", MouseGetPos(1), "hwnd", $Form1, "ptr", 0)
                    EndIf
            EndSwitch
    EndSwitch

    Return $GUI_RUNDEFMSG
EndFunc
;==============================================================================================================================================================================================
Func SetIconListToListView()

    Local $hItemIcon_Item0   = _GDIPlus_BitmapCreateFromMemory(GetIcon_ListView_Item0(),   True)
    Local $hItemIcon_Item1 = _GDIPlus_BitmapCreateFromMemory(GetIcon_ListView_Item1(), True)
    Local $hItemIcon_Item2 = _GDIPlus_BitmapCreateFromMemory(GetIcon_ListView_Item2(), True)

    Local $hListView_ImageList = _GUIImageList_Create(16, 16, 5, 3)

    _GUIImageList_Add($hListView_ImageList, $hItemIcon_Item0)
    _GUIImageList_Add($hListView_ImageList, $hItemIcon_Item1)
    _GUIImageList_Add($hListView_ImageList, $hItemIcon_Item2)

    _GUICtrlListView_SetImageList($ListView, $hListView_ImageList, 1)

    _WinAPI_DeleteObject($hItemIcon_Item0)
    _WinAPI_DeleteObject($hItemIcon_Item1)
    _WinAPI_DeleteObject($hItemIcon_Item2)

EndFunc
;==============================================================================================================================================================================================
Func GetIcon_ListView_Item0()
    Local $AleciveFlatwokenAppsFileNewsico
    $AleciveFlatwokenAppsFileN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nCwv/B393/gElUU4p2hoXCLwiXrK3CD6zGxf8AnMit/5fDp/8AptK2/5/Lr/8AlsOm/5TBpP8GrsA/xRm72Nb/RkBQT4l3h4bCL5QBwCybsbL/sczLAP+xyrv/t8y9AP+9yMD/scm6AP+u2b3/rtK7EP+rxcTGGaW/vkD/P0dHiHjAD7kM1tTCZcFKudXU/wDa2NH/6uTZ/wDp49r/6OPb/wDb2tD/xsXC/wauwE/BCYmdnv+hALq4/z9IR4d4HojAD8AMwWTBALbR0ED/2OLa/9rAANsPwA7BAcUCwQaYr6//gIyhof+iu7rBDxCFeYiHwj+dtLRHwljBXMEBpLy9wAC8EcJbnbS1wHC4/9hA4+P/9fj4wgDTANbW5hkaGix7wIiIW77c2sJ84TaAjaCi/7POzeIAAIyfof+yzMz/AI2ho/+qw8P/CPP29mJr3d3d5hAeHh4tYV9gaGcAIcDb2fuQpaYc/6RgDeFA4TOVqqwj4iThHZ+3t2JW9vkK+WUHLIlvtcXEbBDJ5OL7fWfW2tkK5WAHKxF4Z25uIQCJk5JaiZSTXxVhAIpmAJRkAJNfJ8goKCTtBoABY4ofABMEAOAFAANgBgcAAADADwAA'
    $AleciveFlatwokenAppsFileNewsico = _WinAPI_Base64Decode($AleciveFlatwokenAppsFileNewsico)
    Local $tSource = DllStructCreate('byte[' & BinaryLen($AleciveFlatwokenAppsFileNewsico) & ']')
    DllStructSetData($tSource, 1, $AleciveFlatwokenAppsFileNewsico)
    Local $tDecompress
    _WinAPI_LZNTDecompress($tSource, $tDecompress, 5430)
    $tSource = 0
    Return Binary(DllStructGetData($tDecompress, 1))
EndFunc
;==============================================================================================================================================================================================
Func GetIcon_ListView_Item1()
    Local $AleciveFlatwokenAppsUnlockico
    ;$AleciveFlatwokenAppsUnlockico &= 'NbYAAAABAAIAICABAXAgAKgQAAAmMAAAABAAOAF4aARoAADOACwoAEwAiACuQAAMAVwoAAMABhYABqowAAY7AAY8QAY6AAM6KwADFAADAKEWABACAAkPYRA3VrcYAFWF3Btflu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BAhAIVu/w4xKYwfAGlYXy+zlv8xALWZ/ze5nv/+xP7+xguF1sbCAAUAAcEGK456/yWKdAD/JIhy/w8zKwCLI21dXzK3mwD/NLqe/zi9ooj//P7HH2zRvcIAAckfLJF8/yeNeAD/Jot2/xE1LQCKJ3BhXzS7nwD/Nr6j/z3CqB3KO/3AG8EACQAwloEE/ynAECqYgf8WAEQ6iSxzZV83AcAOOcKn/zzFqxD/qubbwgm97eVw/67p38IAwQIBAKMA0sn/LpaD/y4AnYf/Nbug/xkASD6IMXZoXzkQwaf/O8AOPsmvEP9IzbXCCmfZxXD/Q9G5wgDBAgEAOQCfjf8yo47/OgDBqP84wKb/GwBJQIc1eGtfOgDEqf89yK7/QEDMsv9G0LjAQP4A/3Pfzf9H178HwgDBAsE+OaqX/z4AyK//PMet/zoAw6j/HkpChTkIem1fwh7KsP9BAM61/0TSuv/CAPHp/9n38v9zBOPRwgDZ9vL/wADr5P9Czrb/QATNtMAar/87xKoA/x9LQ4Q/e28AWzzGrP8/yrEA/0LPtv9F07sA/1Haw/+58egQ//X9+2IAufDoMP9R2cJiC2EMPskC'
    $AleciveFlatwokenAppsUnlockico &= 'sOIdIkpCfTtfQFghSsqy++YP0wK6YhZJ28T/S90ix2AAxv9J4AlG1oC+/0PSuf9B4A8B4iTGrvwSHRs/AeFnbrapbFTPuIr7YRND4B9F1LxiCFhI2MFiAGEHROASQgTPt2IkUsu1/DQoXFWFQAcCZXBFaABiIVyMg1tdjgCFX16Phl9ekOCHX1+QiGIAYQFhAgFhA1aBeVwcKifyKeUGgAHjhx8ACwBijgADAAA='

    $AleciveFlatwokenAppsUnlockico = _WinAPI_Base64Decode($AleciveFlatwokenAppsUnlockico)
    Local $tSource = DllStructCreate('byte[' & BinaryLen($AleciveFlatwokenAppsUnlockico) & ']')
    DllStructSetData($tSource, 1, $AleciveFlatwokenAppsUnlockico)
    Local $tDecompress
    _WinAPI_LZNTDecompress($tSource, $tDecompress, 5430)
    $tSource = 0
    Return Binary(DllStructGetData($tDecompress, 1))
EndFunc
;==============================================================================================================================================================================================
Func GetIcon_ListView_Item2()
    Local $AleciveFlatwokenAppsMahjonggico
    $AleciveFlatwokenAppsMahjonggico &= 'bLgAAAABAAIAICABAXAgAKgQAAAmMAAAABAAOAF4aARoAADOACwoAEwAiACuQAAMAVwoAAMABhYABqowAAY7AAY8QAY6AAM6KwADFAADAKEWABAKAA0OYThNULdWAHd83GGGi+VhCIeM5gIDhozmYKCGi+ZfhQgDhIQBAYQHXICF5lFxdhTmUoEBcoQBcXXlAEllad0vQUS+UAgLDH6AMT+AAQ8BkD0SLkBCn4GyALj5lM3V/5vXIN//nNjgggOa1gDf/5jV3/+X1IDe/5bT3v+VgQFw0t3/lIABgQOBAZEAzdf/gLW+/38As7v/gbS8/4IBgAGDtbz/hLa9AYIDfa20/22Wm6D5JzY4tIA1UIxBAAIwQkSRkMfOdv6GO4Q9mYA9hTuBN5Mg0d3/ktDDAJHQAtzCAI7K1v99sgC9/3ywuv99seC6/36yu8YhxSDFIQB6qK7+KTg6sgXAHD3FYg4TFC+J+LzD+MEdxQDCHsQ8wTcBwx3c/5DP3P+PAs7DAI7N3P+LyADV/3qwu/95ruK5wgB7r7rGIdEgwQAAdZ+l+QkNDXsFgB4TwR9NaGyEmvTV3c4elsAewTzBOsUdQI3N2/+MzMAAywDb/4jF1f93rgC7/3aruf93rLC5/3itwADAIHrEIQHVIIO0u/83Sk0Gu4AegckAgrK4sx/KHsRcxh7COsMci8raQP+Kydr/icAAV0B8vP9zqbjCAHTQqrj/dcAAdsQhxUJDyyDHQFd3e9qAHjbhwR+Xz9a+xXzBmsVcNcUejcA7i8AewRyIyADa/4fH2f+GxgDZ/0lotv9wp4C3/3Got/9yYAAH5RDhIWkQfrG7/4CFYBCCaCBhhYrjQA/COOEPmtLav+ouYE1f4T1hLuEeZQ/hDoXgDoQAxdj/g8TY/zxAVLH/bqW2YgBvFqZjEeEQdOAQdau4H2IQYTHhQWFS6TBihotF4Q834Q+b1NviD5r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0vP+DtQC8/3yrsv0zRQRIrYEhFh8gLZck0NiDHdXfghuRzwDc/47N3P+MywDa/3y0wf94rQC5/3qvuf99sQi6/4GEIYCwtv0AEBUWXFBtcVyYm9jggjuBHZDOgRsA2/+Jydr/bJ0Ayf9yqLf/c6kAuP92q7j/ea6DgyGBQ4S2vf8ugHcQW32BX4E9ltTeBcIdi8AOh8fZ/4MAxNj/XIbD/23ApLX/b6a2whHBEBHBIX+zu8IgMUNGQIxdf4NfmsQejkDN2/+IyNrCDn4AwNf/TXG9/2gAoLT/aqK1/24cpbbCIcEywSCDtb0A/zVIS4tfgIUiX8E9ktDdwi2GxgDZ/3/B1/96vQDV/0Bet/9jnQCz/2eftP9soxC1/3GnwCCsuP8AfLC6/5HK0/8AO1FUimGBhl9GmMQPwS6ExdnCHncAutP/M0mv/15Al7H/ZZ6zwiBwgcEPq7n/isXQwlqAPFFUiWKChsYfBcEPhcQfR2i4/yMALab/PVqu/1Awea//a8EfwECEwAbPwgrBDD1SVIhkTIOHwj/Beo3Mw06BAMLX/0JeuP8qADes/3Gv0f8jACun/2mdtf+ANL3OwgiUwArBDD5S4FWHZoOIw1/AjMFuAIrK2v9+u9X/AD9Ytv8eIqb/ADJErv8mMKf/6HWty8IGkMBowQrBDJHAD4VohMEP4P/BQA/BIMFgwQnBISIpqP/oZJS0wB3NwgTBlMEIA8EuwQw/U1WEaoTYiFucwI/BE5dgQOEDAo9kSCUsqf9woH7LYhZhAmEDYQRhBWEGPwBQUn1VZWchowja4vtlCJjV3v/+lWBBYSThSWEAYQFhAmEDAWUHoNff/BoeHwI/4WehwMVsp9z+42YIYSNhBWENYQBhAWECAWUHpNng/FBiZAqFQAcCZXBdbG4hAHyQk1t8kZRf'
    $AleciveFlatwokenAppsMahjonggico &= 'BXEAfWQAc4WIXCbIKywp5QaAAeOHHwADCwBijgMAAA=='
    $AleciveFlatwokenAppsMahjonggico = _WinAPI_Base64Decode($AleciveFlatwokenAppsMahjonggico)
    Local $tSource = DllStructCreate('byte[' & BinaryLen($AleciveFlatwokenAppsMahjonggico) & ']')
    DllStructSetData($tSource, 1, $AleciveFlatwokenAppsMahjonggico)
    Local $tDecompress
    _WinAPI_LZNTDecompress($tSource, $tDecompress, 5430)
    $tSource = 0
    Return Binary(DllStructGetData($tDecompress, 1))
EndFunc
;==============================================================================================================================================================================================
Func _WinAPI_Base64Decode($sB64String)
    Local $aCrypt = DllCall($hDLL_Crypt32, "bool", "CryptStringToBinaryA", "str", $sB64String, "dword", 0, "dword", 1, "ptr", 0, "dword*", 0, "ptr", 0, "ptr", 0)
    If @error Or Not $aCrypt[0] Then Return SetError(1, 0, "")
    Local $bBuffer = DllStructCreate("byte[" & $aCrypt[5] & "]")
    $aCrypt = DllCall($hDLL_Crypt32, "bool", "CryptStringToBinaryA", "str", $sB64String, "dword", 0, "dword", 1, "struct*", $bBuffer, "dword*", $aCrypt[5], "ptr", 0, "ptr", 0)
    If @error Or Not $aCrypt[0] Then Return SetError(2, 0, "")
    Return DllStructGetData($bBuffer, 1)
EndFunc   ;==>_WinAPI_Base64Decode
;==============================================================================================================================================================================================
Func _WinAPI_LZNTDecompress(ByRef $tInput, ByRef $tOutput, $iBufferSize)
    $tOutput = DllStructCreate("byte[" & $iBufferSize & "]")
    If @error Then Return SetError(1, 0, 0)
    Local $aRet = DllCall($hDLL_ntdll, "uint", "RtlDecompressBuffer", "ushort", 0x0002, "struct*", $tOutput, "ulong", $iBufferSize, "struct*", $tInput, "ulong", DllStructGetSize($tInput), "ulong*", 0)
    If @error Then Return SetError(2, 0, 0)
    If $aRet[0] Then Return SetError(3, $aRet[0], 0)
    Return $aRet[6]
EndFunc   ;==>_WinAPI_LZNTDecompress
;==============================================================================================================================================================================================

 

Share this post


Link to post
Share on other sites
Iczer

:sweating:^_^

Share this post


Link to post
Share on other sites
LarsJ

Mr. Iczer, Redraw the icon of selected items with _GUIImageList_Draw in the custom draw post paint stage.

Here a modified version of the example for _GUICtrlListView_CreateSolidBitMap in the help file:

#AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GuiImageList.au3>
#include <GuiListView.au3>

Opt( "MustDeclareVars", 1 )

Global $idListView, $hListView, $hImage

Example()

Func Example()
  GUICreate("ListView Create Solid BitMap", 400, 300)
  $idListView = GUICtrlCreateListView("", 2, 2, 394, 268, $GUI_SS_DEFAULT_LISTVIEW-$LVS_SINGLESEL)
  $hListView = GUICtrlGetHandle( $idListView )

  GUISetState(@SW_SHOW)
  GUIRegisterMsg($WM_NOTIFY, "WM_NOTIFY")

  ; Load images
  $hImage = _GUIImageList_Create()
  _GUIImageList_Add($hImage, _GUICtrlListView_CreateSolidBitMap($hListView, 0xFF0000, 16, 16))
  _GUIImageList_Add($hImage, _GUICtrlListView_CreateSolidBitMap($hListView, 0x00FF00, 16, 16))
  _GUIImageList_Add($hImage, _GUICtrlListView_CreateSolidBitMap($hListView, 0x0000FF, 16, 16))
  _GUICtrlListView_SetImageList($idListView, $hImage, 1)

  ; Add columns
  _GUICtrlListView_AddColumn($idListView, "Items", 100)

  ; Add items
  _GUICtrlListView_AddItem($idListView, "Item 1", 0)
  _GUICtrlListView_AddItem($idListView, "Item 2", 1)
  _GUICtrlListView_AddItem($idListView, "Item 3", 2)

  ; Loop until the user exits.
  Do
  Until GUIGetMsg() = $GUI_EVENT_CLOSE
  GUIDelete()
EndFunc

Func WM_NOTIFY( $hWnd, $iMsg, $wParam, $lParam )
  Static $hDC, $iItem, $tRect = DllStructCreate( $tagRECT ), $pRect = DllStructGetPtr( $tRect )
  Local $tNMHDR = DllStructCreate($tagNMHDR, $lParam)
  Switch HWnd(DllStructGetData($tNMHDR, "hWndFrom"))
    Case $hListView
      Switch DllStructGetData($tNMHDR, "Code")
        Case $NM_CUSTOMDRAW
          Local $tNMLVCUSTOMDRAW = DllStructCreate( $tagNMLVCUSTOMDRAW, $lParam )
          Switch DllStructGetData( $tNMLVCUSTOMDRAW, "dwDrawStage" )
            Case $CDDS_PREPAINT                              ; Before the paint cycle begins
              $hDC = DllStructGetData( $tNMLVCUSTOMDRAW, "hdc" ) ; Device context
              Return $CDRF_NOTIFYITEMDRAW                    ; Notify the parent window before an item is painted

            Case $CDDS_ITEMPREPAINT                          ; Before an item is painted
              $iItem = DllStructGetData( $tNMLVCUSTOMDRAW, "dwItemSpec" ) ; Item index
              If GUICtrlSendMsg( $idListView, $LVM_GETITEMSTATE, $iItem, $LVIS_SELECTED ) Then _ ; Selected item?
                Return $CDRF_NOTIFYPOSTPAINT                 ; Custom drawing of selected items
              Return $CDRF_NEWFONT                           ; Default drawing of other items

            Case $CDDS_ITEMPOSTPAINT                         ; After an item has been painted
              ; Subitem rectangle
              DllStructSetData( $tRect, "Top", 0 )
              DllStructSetData( $tRect, "Left", $LVIR_ICON )
              GUICtrlSendMsg( $idListView, $LVM_GETSUBITEMRECT, $iItem, $pRect )
              _GUIImageList_Draw( $hImage, $iItem, $hDC, DllStructGetData( $tRect, "Left" ), DllStructGetData( $tRect, "Top" ) + 1 )
              Return $CDRF_NEWFONT                           ; $CDRF_NEWFONT must be returned after changing font or colors
          EndSwitch
      EndSwitch
  EndSwitch
  #forceref $hWnd, $iMsg, $wParam
EndFunc

 

And the same example with your icons copied from the code in first post:

#AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GuiImageList.au3>
#include <GuiListView.au3>
#include <GDIPlus.au3>

Opt( "MustDeclareVars", 1 )

Global $idListView, $hListView, $hImage

Example()

Func Example()
  GUICreate("ListView Create Solid BitMap", 400, 300)
  $idListView = GUICtrlCreateListView("", 2, 2, 394, 268, $GUI_SS_DEFAULT_LISTVIEW-$LVS_SINGLESEL)
  $hListView = GUICtrlGetHandle( $idListView )

  GUISetState(@SW_SHOW)
  GUIRegisterMsg($WM_NOTIFY, "WM_NOTIFY")

  #cs
  ; Load images
  $hImage = _GUIImageList_Create()
  _GUIImageList_Add($hImage, _GUICtrlListView_CreateSolidBitMap($hListView, 0xFF0000, 16, 16))
  _GUIImageList_Add($hImage, _GUICtrlListView_CreateSolidBitMap($hListView, 0x00FF00, 16, 16))
  _GUIImageList_Add($hImage, _GUICtrlListView_CreateSolidBitMap($hListView, 0x0000FF, 16, 16))
  _GUICtrlListView_SetImageList($idListView, $hImage, 1)
  #ce

  ; Load images
  _GDIPlus_Startup()
  $hImage = _GUIImageList_Create(16, 16, 5, 3)
  _GUIImageList_Add($hImage, _GDIPlus_BitmapCreateFromMemory(GetIcon_ListView_Item0(), True))
  _GUIImageList_Add($hImage, _GDIPlus_BitmapCreateFromMemory(GetIcon_ListView_Item1(), True))
  _GUIImageList_Add($hImage, _GDIPlus_BitmapCreateFromMemory(GetIcon_ListView_Item2(), True))
  _GUICtrlListView_SetImageList($idListView, $hImage, 1)
  _GDIPlus_Shutdown()

  ; Add columns
  _GUICtrlListView_AddColumn($idListView, "Items", 100)

  ; Add items
  _GUICtrlListView_AddItem($idListView, "Item 1", 0)
  _GUICtrlListView_AddItem($idListView, "Item 2", 1)
  _GUICtrlListView_AddItem($idListView, "Item 3", 2)

  ; Loop until the user exits.
  Do
  Until GUIGetMsg() = $GUI_EVENT_CLOSE
  GUIDelete()
EndFunc

Func WM_NOTIFY( $hWnd, $iMsg, $wParam, $lParam )
  Static $hDC, $iItem, $tRect = DllStructCreate( $tagRECT ), $pRect = DllStructGetPtr( $tRect )
  Local $tNMHDR = DllStructCreate($tagNMHDR, $lParam)
  Switch HWnd(DllStructGetData($tNMHDR, "hWndFrom"))
    Case $hListView
      Switch DllStructGetData($tNMHDR, "Code")
        Case $NM_CUSTOMDRAW
          Local $tNMLVCUSTOMDRAW = DllStructCreate( $tagNMLVCUSTOMDRAW, $lParam )
          Switch DllStructGetData( $tNMLVCUSTOMDRAW, "dwDrawStage" )
            Case $CDDS_PREPAINT                              ; Before the paint cycle begins
              $hDC = DllStructGetData( $tNMLVCUSTOMDRAW, "hdc" ) ; Device context
              Return $CDRF_NOTIFYITEMDRAW                    ; Notify the parent window before an item is painted

            Case $CDDS_ITEMPREPAINT                          ; Before an item is painted
              $iItem = DllStructGetData( $tNMLVCUSTOMDRAW, "dwItemSpec" ) ; Item index
              If GUICtrlSendMsg( $idListView, $LVM_GETITEMSTATE, $iItem, $LVIS_SELECTED ) Then _ ; Selected item?
                Return $CDRF_NOTIFYPOSTPAINT                 ; Custom drawing of selected items
              Return $CDRF_NEWFONT                           ; Default drawing of other items

            Case $CDDS_ITEMPOSTPAINT                         ; After an item has been painted
              ; Subitem rectangle
              DllStructSetData( $tRect, "Top", 0 )
              DllStructSetData( $tRect, "Left", $LVIR_ICON )
              GUICtrlSendMsg( $idListView, $LVM_GETSUBITEMRECT, $iItem, $pRect )
              _GUIImageList_Draw( $hImage, $iItem, $hDC, DllStructGetData( $tRect, "Left" ), DllStructGetData( $tRect, "Top" ) + 1 )
              Return $CDRF_NEWFONT                           ; $CDRF_NEWFONT must be returned after changing font or colors
          EndSwitch
      EndSwitch
  EndSwitch
  #forceref $hWnd, $iMsg, $wParam
EndFunc

;==============================================================================================================================================================================================
Func GetIcon_ListView_Item0()
    Local $AleciveFlatwokenAppsFileNewsico
    $AleciveFlatwokenAppsFileNewsico &= 'xrcAAAABAAIAICABAXAgAKgQAAAmMAAAABAAOAF4aARoAADOACwoAEwAiACuQAAMAVwoAAMABhcABqoxAAY8EAY7FAM6EAOqOQQDOAADKwADFQADAwChFgARDQ8PYksAV1a4c4SD3H9wk5LlgAADAQcGA5IqkYEB5IUBfoEBkZCVhQHjgQF9gQGQj4UBguKAJd1MV1a/gC0qf4AxP4ABD5A9Ej0AR0afp8C/+bwA2df/wuDe/8Mc4d/CAYElgSmnwL6g+T5HRrSANVCMQQACP0hHkrfT0gb+yTvRIbfT0f4/KEhIs8AcPsViEhUAFTCuyMf4utYg1f+mvr7GALjUAtPGDqW9vf+ftgC2/6vExP+712LWwgC/3NrCCMkM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5hkaGix7wIiIW77c2sJ84TaAjaCi/7POzeIAAIyfof+yzMz/AI2ho/+qw8P/CPP29mJr3d3d5hAeHh4tYV9gaGcAIcDb2fuQpaYc/6RgDeFA4TOVqqwj4iThHZ+3t2JW9vkK+WUHLIlvtcXEbBDJ5OL7fWfW2tkK5WAHKxF4Z25uIQCJk5JaiZSTXxVhAIpmAJRkAJNfJ8goKCTtBoABY4ofABMEAOAFAANgBgcAAADADwAA'
    $AleciveFlatwokenAppsFileNewsico = _WinAPI_Base64Decode($AleciveFlatwokenAppsFileNewsico)
    Local $tSource = DllStructCreate('byte[' & BinaryLen($AleciveFlatwokenAppsFileNewsico) & ']')
    DllStructSetData($tSource, 1, $AleciveFlatwokenAppsFileNewsico)
    Local $tDecompress
    _WinAPI_LZNTDecompress($tSource, $tDecompress, 5430)
    $tSource = 0
    Return Binary(DllStructGetData($tDecompress, 1))
EndFunc
;==============================================================================================================================================================================================
Func GetIcon_ListView_Item1()
    Local $AleciveFlatwokenAppsUnlockico
    ;$AleciveFlatwokenAppsUnlockico &= 'NbYAAAABAAIAICABAXAgAKgQAAAmMAAAABAAOAF4aARoAADOACwoAEwAiACuQAAMAVwoAAMABhYABqowAAY7AAY8QAY6AAM6KwADFAADAKEWABACAAkPYRA3VrcYAFWF3BtfluUbKGCX5gMDlgIDGlsAj+YVSnTmFUkCc6QBcuUTQWbdAAwqQr4CBwx+FYAxP4ABD5A9Eg4uAEefJ4DG+SyToOX/LZrwgAHxigEALJXo/yR6vv8IIna4rAG3/yFxAK//HmKX+QskFDe0gDVQjEECEDAASZEukd7+L5wg8P8vnPGOAS2WAOj/JXu+/yR3Arj4ALf/I2+q/lANJTmzwBw9xWIFAA4VLy6L0vgwCJ3x/9EAL5jo/4AmfL7/JXi4/wABwAAka6H5AwgNCnuAHhPBHxxOdISAMp3u/zKe8c4AADCZ6P8nfb7/GCZ5uP8AxgC2/xMYM0u7gB6ByQAwhkDGszOg8f/NADeAofH/4vH7/zUAAOHs9f8rfLr/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yK7/QEDMsv9G0LjAQP4A/3Pfzf9H178HwgDBAsE+OaqX/z4AyK//PMet/zoAw6j/HkpChTkIem1fwh7KsP9BAM61/0TSuv/CAPHp/9n38v9zBOPRwgDZ9vL/wADr5P9Czrb/QATNtMAar/87xKoA/x9LQ4Q/e28AWzzGrP8/yrEA/0LPtv9F07sA/1Haw/+58egQ//X9+2IAufDoMP9R2cJiC2EMPskC'
    $AleciveFlatwokenAppsUnlockico &= 'sOIdIkpCfTtfQFghSsqy++YP0wK6YhZJ28T/S90ix2AAxv9J4AlG1oC+/0PSuf9B4A8B4iTGrvwSHRs/AeFnbrapbFTPuIr7YRND4B9F1LxiCFhI2MFiAGEHROASQgTPt2IkUsu1/DQoXFWFQAcCZXBFaABiIVyMg1tdjgCFX16Phl9ekOCHX1+QiGIAYQFhAgFhA1aBeVwcKifyKeUGgAHjhx8ACwBijgADAAA='

    $AleciveFlatwokenAppsUnlockico = _WinAPI_Base64Decode($AleciveFlatwokenAppsUnlockico)
    Local $tSource = DllStructCreate('byte[' & BinaryLen($AleciveFlatwokenAppsUnlockico) & ']')
    DllStructSetData($tSource, 1, $AleciveFlatwokenAppsUnlockico)
    Local $tDecompress
    _WinAPI_LZNTDecompress($tSource, $tDecompress, 5430)
    $tSource = 0
    Return Binary(DllStructGetData($tDecompress, 1))
EndFunc
;==============================================================================================================================================================================================
Func GetIcon_ListView_Item2()
    Local $AleciveFlatwokenAppsMahjonggico
    $AleciveFlatwokenAppsMahjonggico &= 'bLgAAAABAAIAICABAXAgAKgQAAAmMAAAABAAOAF4aARoAADOACwoAEwAiACuQAAMAVwoAAMABhYABqowAAY7AAY8QAY6AAM6KwADFAADAKEWABAKAA0OYThNULdWAHd83GGGi+VhCIeM5gIDhozmYKCGi+ZfhQgDhIQBAYQHXICF5lFxdhTmUoEBcoQBcXXlAEllad0vQUS+UAgLDH6AMT+AAQ8BkD0SLkBCn4GyALj5lM3V/5vXIN//nNjgggOa1gDf/5jV3/+X1IDe/5bT3v+Vg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soxC1/3GnwCCsuP8AfLC6/5HK0/8AO1FUimGBhl9GmMQPwS6ExdnCHncAutP/M0mv/15Al7H/ZZ6zwiBwgcEPq7n/isXQwlqAPFFUiWKChsYfBcEPhcQfR2i4/yMALab/PVqu/1Awea//a8EfwECEwAbPwgrBDD1SVIhkTIOHwj/Beo3Mw06BAMLX/0JeuP8qADes/3Gv0f8jACun/2mdtf+ANL3OwgiUwArBDD5S4FWHZoOIw1/AjMFuAIrK2v9+u9X/AD9Ytv8eIqb/ADJErv8mMKf/6HWty8IGkMBowQrBDJHAD4VohMEP4P/BQA/BIMFgwQnBISIpqP/oZJS0wB3NwgTBlMEIA8EuwQw/U1WEaoTYiFucwI/BE5dgQOEDAo9kSCUsqf9woH7LYhZhAmEDYQRhBWEGPwBQUn1VZWchowja4vtlCJjV3v/+lWBBYSThSWEAYQFhAmEDAWUHoNff/BoeHwI/4WehwMVsp9z+42YIYSNhBWENYQBhAWECAWUHpNng/FBiZAqFQAcCZXBdbG4hAHyQk1t8kZRf'
    $AleciveFlatwokenAppsMahjonggico &= 'BXEAfWQAc4WIXCbIKywp5QaAAeOHHwADCwBijgMAAA=='
    $AleciveFlatwokenAppsMahjonggico = _WinAPI_Base64Decode($AleciveFlatwokenAppsMahjonggico)
    Local $tSource = DllStructCreate('byte[' & BinaryLen($AleciveFlatwokenAppsMahjonggico) & ']')
    DllStructSetData($tSource, 1, $AleciveFlatwokenAppsMahjonggico)
    Local $tDecompress
    _WinAPI_LZNTDecompress($tSource, $tDecompress, 5430)
    $tSource = 0
    Return Binary(DllStructGetData($tDecompress, 1))
EndFunc
;==============================================================================================================================================================================================
Func _WinAPI_Base64Decode($sB64String)
    Local $aCrypt = DllCall("Crypt32.dll", "bool", "CryptStringToBinaryA", "str", $sB64String, "dword", 0, "dword", 1, "ptr", 0, "dword*", 0, "ptr", 0, "ptr", 0)
    If @error Or Not $aCrypt[0] Then Return SetError(1, 0, "")
    Local $bBuffer = DllStructCreate("byte[" & $aCrypt[5] & "]")
    $aCrypt = DllCall("Crypt32.dll", "bool", "CryptStringToBinaryA", "str", $sB64String, "dword", 0, "dword", 1, "struct*", $bBuffer, "dword*", $aCrypt[5], "ptr", 0, "ptr", 0)
    If @error Or Not $aCrypt[0] Then Return SetError(2, 0, "")
    Return DllStructGetData($bBuffer, 1)
EndFunc   ;==>_WinAPI_Base64Decode
;==============================================================================================================================================================================================
Func _WinAPI_LZNTDecompress(ByRef $tInput, ByRef $tOutput, $iBufferSize)
    $tOutput = DllStructCreate("byte[" & $iBufferSize & "]")
    If @error Then Return SetError(1, 0, 0)
    Local $aRet = DllCall("ntdll.dll", "uint", "RtlDecompressBuffer", "ushort", 0x0002, "struct*", $tOutput, "ulong", $iBufferSize, "struct*", $tInput, "ulong", DllStructGetSize($tInput), "ulong*", 0)
    If @error Then Return SetError(2, 0, 0)
    If $aRet[0] Then Return SetError(3, $aRet[0], 0)
    Return $aRet[6]
EndFunc   ;==>_WinAPI_LZNTDecompress
;==============================================================================================================================================================================================

 

To customize my examples to your code in the first post, please take into account that my examples contain only items and item icons while your code contains subitems and subitem icons. You need more code.

Share this post


Link to post
Share on other sites
Iczer

Thanks!

Share this post


Link to post
Share on other sites
Iczer

forgot to post working example

#include <GuiListView.au3>
#include <FontConstants.au3>
#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <TreeViewConstants.au3>
#include <WindowsConstants.au3>
#include <GuiTreeView.au3>
#include <SQLite.au3>
#include <Math.au3>
#include <GDIPlus.au3>

$hDLL_Crypt32 = DllOpen("Crypt32.dll")
$hDLL_ntdll = DllOpen("ntdll.dll")

_GDIPlus_Startup()

Global Const $tagNMLVCACHEHINT = $tagNMHDR & ";int iFrom;int iTo"
Global $aListView, $hListView, $TreeView_SelTitle, $aTreeViewState[19][8] = [[18,"","","","","","",""]], $sSelectedTVIndex = 3
Global $hListView_ImageList

Opt("GUIOnEventMode", 1)

#Region ### START Koda GUI section ### Form=
Global $Form1 = GUICreate("Form1", 881, 516, -1, -1)
GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")
Global $hTreeView = _GUICtrlTreeView_Create($Form1, 8, 16, 319, 489, BitOR($GUI_SS_DEFAULT_TREEVIEW,$WS_HSCROLL,$WS_VSCROLL, $TVS_SHOWSELALWAYS,$WS_HSCROLL,$WS_BORDER, $TVS_INFOTIP), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$TreeView_Root_1 = _GUICtrlTreeView_Add($hTreeView, 0, "Root - 1")
_GUICtrlTreeView_SetIcon($hTreeView, $TreeView_Root_1, "shell32.dll", 4)
$TreeView_Root_2 = _GUICtrlTreeView_Add($hTreeView, 0, "Root - 2")
_GUICtrlTreeView_SetIcon($hTreeView, $TreeView_Root_2, "shell32.dll", 4)
Global $idListView = GUICtrlCreateListView("Rowid|Name|Time|Category", 336, 16, 538, 486,  $LVS_SHOWSELALWAYS);,$LVS_SINGLESEL
_GUICtrlListView_SetExtendedListViewStyle( $idListView, BitOR($LVS_EX_DOUBLEBUFFER, $LVS_EX_FULLROWSELECT, $LVS_EX_SUBITEMIMAGES, $WS_EX_CLIENTEDGE, $WS_EX_STATICEDGE))

GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 0, 0)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 1, 250)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 2, 88)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 3, 112)
GUICtrlSetOnEvent(-1, "ListViewClick")

SetIconListToListView()


$hListView = GUICtrlGetHandle($idListView)
ConsoleWrite($hListView & @CRLF)
;------------------------------------------------------------------------------------------

  ; Get the font of the TreeView control
  ; Copied from the _GUICtrlGetFont example by KaFu
  ; See http://www.autoitscript.com/forum/index.php?showtopic=124526
  Local $hDC = _WinAPI_GetDC( $hTreeView )
  $hFont = _SendMessage( $hTreeView, $WM_GETFONT )
  Local $hObject = _WinAPI_SelectObject( $hDC, $hFont )
  Local $lvLOGFONT = DllStructCreate( $tagLOGFONT )
  DllCall( 'gdi32.dll', 'int', 'GetObjectW', 'ptr', $hFont, 'int', DllStructGetSize( $lvLOGFONT ), 'ptr', DllStructGetPtr( $lvLOGFONT ) )
  _WinAPI_SelectObject( $hDC, $hObject )
  _WinAPI_ReleaseDC( $hTreeView, $hDC )
  $TreeViewFont = _WinAPI_CreateFontIndirect( $lvLOGFONT )
  Local $iWeight = BitOR( DllStructGetData( $lvLOGFONT, "Weight" ), $FW_BOLD )
  DllStructSetData( $lvLOGFONT, "Weight", $iWeight )
  $TreeViewFontBold = _WinAPI_CreateFontIndirect( $lvLOGFONT )

;------------------------------------------------------------------------------------------
Local $idTVContextMenu = GUICtrlCreateContextMenu(GUICtrlCreateDummy())
$hTVContextMenu = GUICtrlGetHandle($idTVContextMenu)
Local $idTVContextMenu_Refresh = GUICtrlCreateMenuItem("Refresh", $idTVContextMenu)
Local $idTVContextMenu_Rename = GUICtrlCreateMenuItem("Rename", $idTVContextMenu)
GUICtrlCreateMenuItem("", $idTVContextMenu) ; separator
Local $idTVContextMenu_MarkALLRead = GUICtrlCreateMenuItem("Mark ALL Items Read", $idTVContextMenu)
Local $idTVContextMenu_MarkALLUnRead = GUICtrlCreateMenuItem("Mark ALL Items UnRead", $idTVContextMenu)
;------------------------------------------------------------------------------------------


GUIRegisterMsg($WM_NOTIFY, "LWS_WM_NOTIFY")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
SubFunction_FillTreeView()

While 1
    Sleep(100)
WEnd

Func Form1Close()
    GUIRegisterMsg( $WM_NOTIFY, "" )
    ;
    DllClose($hDLL_Crypt32)
    DllClose($hDLL_ntdll)
    _GDIPlus_Shutdown()
    Exit
EndFunc
;==========================================================================================
Func ListViewClick()

EndFunc
;==========================================================================================
Func TreeView1Click()
    Local $sQuery, $aResult, $iRows, $iColumns
    Static Local $TreeView_SelTitlePRE = ""

    If $TreeView_SelTitlePRE == "" Then
        $TreeView_Selected = _GUICtrlTreeView_GetFirstChild($hTreeView, $TreeView_Root_1)
        _GUICtrlTreeView_ClickItem($hTreeView, $TreeView_Selected, "left")
    Else
        $TreeView_Selected = _GUICtrlTreeView_GetSelection($hTreeView)
    EndIf
    $TreeView_SelTitle = _GUICtrlTreeView_GetText($hTreeView, $TreeView_Selected)
    If $TreeView_SelTitle == $TreeView_SelTitlePRE Then
        Return
    Else
        $TreeView_SelTitlePRE = $TreeView_SelTitle
    EndIf

    ConsoleWrite($TreeView_SelTitle & @CRLF)

EndFunc
;==========================================================================================
Func SubFunction_FillTreeView()

    ConsoleWrite(" > $sSelected TV Index = " & $sSelectedTVIndex & @CRLF)
    ConsoleWrite(" > $sSelected TV Name = " & $aTreeViewState[$sSelectedTVIndex][5] & @CRLF)

    Local $idTVItem[$aTreeViewState[0][0]+1] = [$aTreeViewState[0][0]]
    _GUICtrlTreeView_BeginUpdate($hTreeView)
    _GUICtrlTreeView_DeleteChildren($hTreeView, $TreeView_Root_1)
    _GUICtrlTreeView_DeleteChildren($hTreeView, $TreeView_Root_2)
    _GUICtrlTreeView_SetTextColor($hTreeView, 0x77B5FE) ; color of additional text
    For $i = 1 To $aTreeViewState[0][0]
        $aTreeViewState[$i][0] = 3 ; icon num in "shell32.dll"
        $aTreeViewState[$i][1] = 0x000000 ; item text color
        $aTreeViewState[$i][2] = 0 ; text is bold (or not)
        $aTreeViewState[$i][3] = "some info" ; some additional text
        $aTreeViewState[$i][5] = String("item " & $i); item name
        Switch Mod($i,2)
            Case 0
                $idTVItem[$i] = _GUICtrlTreeView_AddChild($hTreeView,$TreeView_Root_2, $aTreeViewState[$i][5])
            Case Else
                $idTVItem[$i] = _GUICtrlTreeView_AddChild($hTreeView,$TreeView_Root_1, $aTreeViewState[$i][5])
        EndSwitch
        Switch Mod($i,3)
            Case 0
                $aTreeViewState[$i][2] = 0
            Case Else
                $aTreeViewState[$i][2] = 1
        EndSwitch
        _GUICtrlTreeView_SetItemParam($hTreeView, $idTVItem[$i], $i)
        _GUICtrlTreeView_SetIcon($hTreeView, $idTVItem[$i], "shell32.dll", $aTreeViewState[$i][0])
    Next
    _GUICtrlTreeView_Expand($hTreeView, $TreeView_Root_1, True)
    _GUICtrlTreeView_EndUpdate($hTreeView)

    _GUICtrlTreeView_ClickItem($hTreeView, $idTVItem[$sSelectedTVIndex])

    SubFunction_FillListView()

EndFunc
;==========================================================================================
Func SubFunction_FillListView_Delayed()
    AdlibUnRegister("SubFunction_FillListView_Delayed")
    SubFunction_FillListView()
EndFunc
;==========================================================================================
Func SubFunction_FillListView()

    _GUICtrlListView_BeginUpdate ($idListView)
    _GUICtrlListView_DeleteAllItems ($idListView)
    For $i = 0 To 63
        $ret = _GUICtrlListView_AddItem($idListView, "RowID "&$i&": Col 0")
        ;ConsoleWrite($i & @TAB & "$ret = " & $ret & @CRLF)
        _GUICtrlListView_AddSubItem($idListView, $i, "Row "&$i&": Col 1", 1, Random(0,2,1));

        _GUICtrlListView_AddSubItem($idListView, $i, "Col 2", 2)

        _GUICtrlListView_AddSubItem($idListView, $i, "Col 3", 3)

    Next
    _GUICtrlListView_EndUpdate ($idListView)

EndFunc
;==========================================================================================
Func LWS_WM_NOTIFY( $hWnd, $iMsg, $wParam, $lParam )
    Local Static $tText = DllStructCreate( "wchar[512]" )
    Local Static $pText = DllStructGetPtr( $tText )
    Local Static $aResult, $iRows, $iFrom, $tRectLVI = DllStructCreate( $tagRECT ), $pRectLVI = DllStructGetPtr( $tRectLVI )

    Local $tNMHDR, $hWndFrom, $iCode, $tInfo, $VKey
    $tNMHDR = DllStructCreate( $tagNMHDR, $lParam )
    $hWndFrom = HWnd( DllStructGetData( $tNMHDR, "hWndFrom" ) )
    $iCode = DllStructGetData( $tNMHDR, "Code" )

    Switch $hWndFrom
        Case $hTreeView
            Switch $iCode

                Case $NM_CUSTOMDRAW
                    Local $tNMTVCUSTOMDRAW = DllStructCreate($tagNMTVCUSTOMDRAW, $lParam)
                    Local $dwDrawStage = DllStructGetData($tNMTVCUSTOMDRAW, "DrawStage")

                    Switch $dwDrawStage                                             ; Holds a value that specifies the drawing stage

                        Case $CDDS_PREPAINT
                            ; Before the paint cycle begins
                            Return $CDRF_NOTIFYITEMDRAW ; Notify the parent window of any item-related drawing operations

                        Case $CDDS_ITEMPREPAINT
                            ; Before painting an item
                            Local $hItemSpec  = DllStructGetData($tNMTVCUSTOMDRAW, "ItemSpec")          ; $hItemSpec = $hItem
                            Local $iItemState = DllStructGetData($tNMTVCUSTOMDRAW, "ItemState")
                            Local $iItemParam = DllStructGetData($tNMTVCUSTOMDRAW, "ItemParam")         ; ItemParam = index in array
                            Local $hDC        = DllStructGetData($tNMTVCUSTOMDRAW, "HDC")               ; Handle to the item's device context

                            $iSelected = DllCall( "user32.dll", "lresult", "SendMessageW", "hwnd", $hTreeView, "uint", $TVM_GETITEMSTATE, "wparam", $hItemSpec, "lparam", $TVIS_SELECTED )[0] ; Selected state
                            If BitAND( $iSelected, $TVIS_SELECTED ) Then Return $CDRF_NOTIFYPOSTPAINT

                            ;If Not BitAnd( $iItemState, $CDIS_FOCUS ) Then
                                DllStructSetData( $tNMTVCUSTOMDRAW, "ClrText", $aTreeViewState[$iItemParam][1] )            ; Forecolor of item text
                                ;DllStructSetData( $tNMTVCUSTOMDRAW, "clrTextBk",$aTreeViewState[$iItemParam][1] )  ; Backcolor of item text

                                Local $tRECT = _GUICtrlTreeView_DisplayRectEx ( $hTreeView, $hItemSpec, True)
                                DllStructSetData( $tRECT, "Left", DllStructGetData( $tRECT, "Right") + 7)
                                DllStructSetData( $tRECT, "Right", DllStructGetData( $tRECT, "Right") + 188)


                                _WinAPI_DrawText( $hDC, $aTreeViewState[$iItemParam][3], $tRECT, $DT_LEFT ) ; and background color of the device context.
                                _GUICtrlTreeView_SetBold ($hTreeView, $hItemSpec, $aTreeViewState[$iItemParam][2])
                            ;Else
                                ;_GUICtrlTreeView_SetBold ($TreeView, $hItemSpec, $aTreeViewState[$iItemParam][2])
                            ;EndIf
                            Return $CDRF_NEWFONT ; $CDRF_NEWFONT must be returned after changing font or colors

                        Case $CDDS_ITEMPOSTPAINT
                            Local $hItemSpec  = DllStructGetData($tNMTVCUSTOMDRAW, "ItemSpec")          ; $hItemSpec = $hItem
                            Local $iItemState = DllStructGetData($tNMTVCUSTOMDRAW, "ItemState")
                            Local $iItemParam = DllStructGetData($tNMTVCUSTOMDRAW, "ItemParam")         ; ItemParam = index in array
                            Local $hDC        = DllStructGetData($tNMTVCUSTOMDRAW, "HDC")               ; Handle to the item's device context

                            Local $tRECT = _GUICtrlTreeView_DisplayRectEx( $hTreeView, $hItemSpec, True)
                            DllStructSetData( $tRECT, "Left", DllStructGetData( $tRECT, "Right") + 7)
                            DllStructSetData( $tRECT, "Right", DllStructGetData( $tRECT, "Right") + 188)

                            ;DllStructSetData( $tNMTVCUSTOMDRAW, "ClrText", $aTreeViewState[$iItemParam][1] )            ; Forecolor of item text
                            DllCall( "gdi32.dll", "int", "SetTextColor", "handle", $hDC, "int", 0xFEB577 ) ; 0x77B5FE
                            _WinAPI_SelectObject( $hDC, $aTreeViewState[$iItemParam][2] ? $TreeViewFontBold : $TreeViewFont ) ; Bold/normal font
                            _WinAPI_DrawText( $hDC, $aTreeViewState[$iItemParam][3], $tRECT, $DT_LEFT ) ; and background color of the device context.

                           _GUICtrlTreeView_SetBold ($hTreeView, $hItemSpec, $aTreeViewState[$iItemParam][2])

                           Return $CDRF_NEWFONT ; $CDRF_NEWFONT must be returned after changing font or colors

                    EndSwitch

                Case $TVN_SELCHANGEDA, $TVN_SELCHANGEDW
                    AdlibRegister("SubFunction_FillListView_Delayed",300)
                    _WinAPI_RedrawWindow($hTreeView)

                Case $NM_RCLICK
                    Local $tMPos = _WinAPI_GetMousePos(True, $hWndFrom) ; ?????????? ???????????? ????????
                    Local $hItem = _GUICtrlTreeView_HitTestItem($hWndFrom, DllStructGetData($tMPos, 1), DllStructGetData($tMPos, 2)) ; ???????? ?????????? ??????
                    If $hItem <> -1 And $hItem <> 0x0 Then
                        DllCall("user32.dll", "int", "TrackPopupMenuEx", "hwnd", $hTVContextMenu, "int", 0, "int", MouseGetPos(0), "int", MouseGetPos(1), "hwnd", $Form1, "ptr", 0)
                    EndIf
            EndSwitch

        Case $hListView
            Switch $iCode
                Case $NM_CUSTOMDRAW
                    Local $tNMLVCUSTOMDRAW = DllStructCreate( $tagNMLVCUSTOMDRAW, $lParam )
                    Switch DllStructGetData( $tNMLVCUSTOMDRAW, "dwDrawStage" )
                        Case $CDDS_PREPAINT                              ; Before the paint cycle begins
                            $hDC = DllStructGetData( $tNMLVCUSTOMDRAW, "hdc" ) ; Device context
                            Return $CDRF_NOTIFYITEMDRAW                    ; Notify the parent window before an item is painted

                        Case $CDDS_ITEMPREPAINT,BitOR($CDDS_ITEMPREPAINT, $CDDS_SUBITEM)                          ; Before an item is painted
                            $iItem = DllStructGetData( $tNMLVCUSTOMDRAW, "dwItemSpec" ) ; Item index
                            $iSubItem = DllStructGetData($tNMLVCUSTOMDRAW, "iSubItem")                  ; Subitem index


                            ;ConsoleWrite("$CDDS_ITEMPREPAINT - > "& $iItem &"/"&$iSubItem & @CRLF)

                            If $iSubItem = 1 Then
                                ConsoleWrite("$CDDS_ITEMPREPAINT - > "& $iItem &"/"&$iSubItem & @CRLF)
                                Return $CDRF_NOTIFYPOSTPAINT
                            EndIf

                            If GUICtrlSendMsg( $idListView, $LVM_GETITEMSTATE, $iItem, $LVIS_SELECTED ) Then; Selected item?
                                ;ConsoleWrite("$CDDS_ITEMPREPAINT - > "& $iItem & @CRLF)
                                ;ConsoleWrite("$CDDS_ITEMPREPAINT - > "& $iItem &"/"&$iSubItem & @CRLF)

                                Return $CDRF_NOTIFYSUBITEMDRAW                 ; Custom drawing of selected items
                            EndIf
                            Return $CDRF_NEWFONT                           ; Default drawing of other items

                        Case $CDDS_ITEMPOSTPAINT,BitOR($CDDS_ITEMPOSTPAINT, $CDDS_SUBITEM)                          ; After an item has been painted
                            $iSubItem = DllStructGetData($tNMLVCUSTOMDRAW, "iSubItem")                  ; Subitem index

                            ConsoleWrite("$CDDS_ITEMPOSTPAINT - > "& $iSubItem & @CRLF)

                            If $iSubItem = 1 Then
                                $iItem = DllStructGetData( $tNMLVCUSTOMDRAW, "dwItemSpec" )
                                ; Subitem rectangle
                                DllStructSetData( $tRectLVI, "Top", $iSubItem )
                                DllStructSetData( $tRectLVI, "Left", $LVIR_ICON )
                                GUICtrlSendMsg( $idListView, $LVM_GETSUBITEMRECT, $iItem, $pRectLVI )
                                _GUIImageList_Draw( $hListView_ImageList, 0, $hDC, DllStructGetData( $tRectLVI, "Left" ), DllStructGetData( $tRectLVI, "Top" ) + 1 )
                                Return $CDRF_NEWFONT                           ; $CDRF_NEWFONT must be returned after changing font or colors
                            EndIf
                    EndSwitch
            EndSwitch









    EndSwitch

    Return $GUI_RUNDEFMSG
EndFunc
;==============================================================================================================================================================================================
Func SetIconListToListView()

    Local $hItemIcon_Item0   = _GDIPlus_BitmapCreateFromMemory(GetIcon_ListView_Item0(),   True)
    Local $hItemIcon_Item1 = _GDIPlus_BitmapCreateFromMemory(GetIcon_ListView_Item1(), True)
    Local $hItemIcon_Item2 = _GDIPlus_BitmapCreateFromMemory(GetIcon_ListView_Item2(), True)

    $hListView_ImageList = _GUIImageList_Create(16, 16, 5, 3)

    _GUIImageList_Add($hListView_ImageList, $hItemIcon_Item0)
    _GUIImageList_Add($hListView_ImageList, $hItemIcon_Item1)
    _GUIImageList_Add($hListView_ImageList, $hItemIcon_Item2)

    _GUICtrlListView_SetImageList($idListView, $hListView_ImageList, 1)

    _WinAPI_DeleteObject($hItemIcon_Item0)
    _WinAPI_DeleteObject($hItemIcon_Item1)
    _WinAPI_DeleteObject($hItemIcon_Item2)

EndFunc
;==============================================================================================================================================================================================
Func GetIcon_ListView_Item0()
    Local $AleciveFlatwokenAppsFileNewsico
    $AleciveFlatwokenAppsFileNewsico &= 'xrcAAAABAAIAICABAXAgAKgQAAAmMAAAABAAOAF4aARoAADOACwoAEwAiACuQAAMAVwoAAMABhcABqoxAAY8EAY7FA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4l3h4bCL5QBwCybsbL/sczLAP+xyrv/t8y9AP+9yMD/scm6AP+u2b3/rtK7EP+rxcTGGaW/vkD/P0dHiHjAD7kM1tTCZcFKudXU/wDa2NH/6uTZ/wDp49r/6OPb/wDb2tD/xsXC/wauwE/BCYmdnv+hALq4/z9IR4d4HojAD8AMwWTBALbR0ED/2OLa/9rAANsPwA7BAcUCwQaYr6//gIyhof+iu7rBDxCFeYiHwj+dtLRHwljBXMEBpLy9wAC8EcJbnbS1wHC4/9hA4+P/9fj4wgDTANbW5hkaGix7wIiIW77c2sJ84TaAjaCi/7POzeIAAIyfof+yzMz/AI2ho/+qw8P/CPP29mJr3d3d5hAeHh4tYV9gaGcAIcDb2fuQpaYc/6RgDeFA4TOVqqwj4iThHZ+3t2JW9vkK+WUHLIlvtcXEbBDJ5OL7fWfW2tkK5WAHKxF4Z25uIQCJk5JaiZSTXxVhAIpmAJRkAJNfJ8goKCTtBoABY4ofABMEAOAFAANgBgcAAADADwAA'
    $AleciveFlatwokenAppsFileNewsico = _WinAPI_Base64Decode($AleciveFlatwokenAppsFileNewsico)
    Local $tSource = DllStructCreate('byte[' & BinaryLen($AleciveFlatwokenAppsFileNewsico) & ']')
    DllStructSetData($tSource, 1, $AleciveFlatwokenAppsFileNewsico)
    Local $tDecompress
    _WinAPI_LZNTDecompress($tSource, $tDecompress, 5430)
    $tSource = 0
    Return Binary(DllStructGetData($tDecompress, 1))
EndFunc
;==============================================================================================================================================================================================
Func GetIcon_ListView_Item1()
    Local $AleciveFlatwokenAppsUnlockico
    ;$AleciveFlatwokenAppsUnlockico &= 'NbYAAAABAAIAICABAXAgAKgQAAAmMAAAABAAOAF4aARoAADOACwoAEwAiACuQAAMAVwoAAMABhYABqowAAY7AAY8QAY6AAM6KwADFAADAKEWABACAAkPYRA3VrcYAFWF3BtfluUbKGCX5gMDlgIDGlsAj+YVSnTmFUkCc6QBcuUTQWbdAAwqQr4CBwx+FYAxP4ABD5A9Eg4uAEefJ4DG+SyToOX/L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mwD/NLqe/zi9ooj//P7HH2zRvcIAAckfLJF8/yeNeAD/Jot2/xE1LQCKJ3BhXzS7nwD/Nr6j/z3CqB3KO/3AG8EACQAwloEE/ynAECqYgf8WAEQ6iSxzZV83AcAOOcKn/zzFqxD/qubbwgm97eVw/67p38IAwQIBAKMA0sn/LpaD/y4AnYf/Nbug/xkASD6IMXZoXzkQwaf/O8AOPsmvEP9IzbXCCmfZxXD/Q9G5wgDBAgEAOQCfjf8yo47/OgDBqP84wKb/GwBJQIc1eGtfOgDEqf89yK7/QEDMsv9G0LjAQP4A/3Pfzf9H178HwgDBAsE+OaqX/z4AyK//PMet/zoAw6j/HkpChTkIem1fwh7KsP9BAM61/0TSuv/CAPHp/9n38v9zBOPRwgDZ9vL/wADr5P9Czrb/QATNtMAar/87xKoA/x9LQ4Q/e28AWzzGrP8/yrEA/0LPtv9F07sA/1Haw/+58egQ//X9+2IAufDoMP9R2cJiC2EMPskC'
    $AleciveFlatwokenAppsUnlockico &= 'sOIdIkpCfTtfQFghSsqy++YP0wK6YhZJ28T/S90ix2AAxv9J4AlG1oC+/0PSuf9B4A8B4iTGrvwSHRs/AeFnbrapbFTPuIr7YRND4B9F1LxiCFhI2MFiAGEHROASQgTPt2IkUsu1/DQoXFWFQAcCZXBFaABiIVyMg1tdjgCFX16Phl9ekOCHX1+QiGIAYQFhAgFhA1aBeVwcKifyKeUGgAHjhx8ACwBijgADAAA='

    $AleciveFlatwokenAppsUnlockico = _WinAPI_Base64Decode($AleciveFlatwokenAppsUnlockico)
    Local $tSource = DllStructCreate('byte[' & BinaryLen($AleciveFlatwokenAppsUnlockico) & ']')
    DllStructSetData($tSource, 1, $AleciveFlatwokenAppsUnlockico)
    Local $tDecompress
    _WinAPI_LZNTDecompress($tSource, $tDecompress, 5430)
    $tSource = 0
    Return Binary(DllStructGetData($tDecompress, 1))
EndFunc
;==============================================================================================================================================================================================
Func GetIcon_ListView_Item2()
    Local $AleciveFlatwokenAppsMahjonggico
    $AleciveFlatw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tv0AEBUWXFBtcVyYm9jggjuBHZDOgRsA2/+Jydr/bJ0Ayf9yqLf/c6kAuP92q7j/ea6DgyGBQ4S2vf8ugHcQW32BX4E9ltTeBcIdi8AOh8fZ/4MAxNj/XIbD/23ApLX/b6a2whHBEBHBIX+zu8IgMUNGQIxdf4NfmsQejkDN2/+IyNrCDn4AwNf/TXG9/2gAoLT/aqK1/24cpbbCIcEywSCDtb0A/zVIS4tfgIUiX8E9ktDdwi2GxgDZ/3/B1/96vQDV/0Bet/9jnQCz/2eftP9soxC1/3GnwCCsuP8AfLC6/5HK0/8AO1FUimGBhl9GmMQPwS6ExdnCHncAutP/M0mv/15Al7H/ZZ6zwiBwgcEPq7n/isXQwlqAPFFUiWKChsYfBcEPhcQfR2i4/yMALab/PVqu/1Awea//a8EfwECEwAbPwgrBDD1SVIhkTIOHwj/Beo3Mw06BAMLX/0JeuP8qADes/3Gv0f8jACun/2mdtf+ANL3OwgiUwArBDD5S4FWHZoOIw1/AjMFuAIrK2v9+u9X/AD9Ytv8eIqb/ADJErv8mMKf/6HWty8IGkMBowQrBDJHAD4VohMEP4P/BQA/BIMFgwQnBISIpqP/oZJS0wB3NwgTBlMEIA8EuwQw/U1WEaoTYiFucwI/BE5dgQOEDAo9kSCUsqf9woH7LYhZhAmEDYQRhBWEGPwBQUn1VZWchowja4vtlCJjV3v/+lWBBYSThSWEAYQFhAmEDAWUHoNff/BoeHwI/4WehwMVsp9z+42YIYSNhBWENYQBhAWECAWUHpNng/FBiZAqFQAcCZXBdbG4hAHyQk1t8kZRf'
    $AleciveFlatwokenAppsMahjonggico &= 'BXEAfWQAc4WIXCbIKywp5QaAAeOHHwADCwBijgMAAA=='
    $AleciveFlatwokenAppsMahjonggico = _WinAPI_Base64Decode($AleciveFlatwokenAppsMahjonggico)
    Local $tSource = DllStructCreate('byte[' & BinaryLen($AleciveFlatwokenAppsMahjonggico) & ']')
    DllStructSetData($tSource, 1, $AleciveFlatwokenAppsMahjonggico)
    Local $tDecompress
    _WinAPI_LZNTDecompress($tSource, $tDecompress, 5430)
    $tSource = 0
    Return Binary(DllStructGetData($tDecompress, 1))
EndFunc
;==============================================================================================================================================================================================
Func _WinAPI_Base64Decode($sB64String)
    Local $aCrypt = DllCall($hDLL_Crypt32, "bool", "CryptStringToBinaryA", "str", $sB64String, "dword", 0, "dword", 1, "ptr", 0, "dword*", 0, "ptr", 0, "ptr", 0)
    If @error Or Not $aCrypt[0] Then Return SetError(1, 0, "")
    Local $bBuffer = DllStructCreate("byte[" & $aCrypt[5] & "]")
    $aCrypt = DllCall($hDLL_Crypt32, "bool", "CryptStringToBinaryA", "str", $sB64String, "dword", 0, "dword", 1, "struct*", $bBuffer, "dword*", $aCrypt[5], "ptr", 0, "ptr", 0)
    If @error Or Not $aCrypt[0] Then Return SetError(2, 0, "")
    Return DllStructGetData($bBuffer, 1)
EndFunc   ;==>_WinAPI_Base64Decode
;==============================================================================================================================================================================================
Func _WinAPI_LZNTDecompress(ByRef $tInput, ByRef $tOutput, $iBufferSize)
    $tOutput = DllStructCreate("byte[" & $iBufferSize & "]")
    If @error Then Return SetError(1, 0, 0)
    Local $aRet = DllCall($hDLL_ntdll, "uint", "RtlDecompressBuffer", "ushort", 0x0002, "struct*", $tOutput, "ulong", $iBufferSize, "struct*", $tInput, "ulong", DllStructGetSize($tInput), "ulong*", 0)
    If @error Then Return SetError(2, 0, 0)
    If $aRet[0] Then Return SetError(3, $aRet[0], 0)
    Return $aRet[6]
EndFunc   ;==>_WinAPI_LZNTDecompress
;==============================================================================================================================================================================================

hope it would be useful to someone

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×