Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Displaying sort arrows in Win32::GUI::ListView headers

by tomsell (Acolyte)
on Jan 02, 2013 at 13:30 UTC ( #1011271=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub HDI_FORMAT   {0x4}
    sub HDF_SORTDOWN {0x400} 
    ...
    
    $hditem_ptr = pack('P44', $hditem);
    $hwnd = $myListView->GetHeader();
    
  2. or download this
    Win32::GUI::SendMessage($hwnd, HDM_SETITEM, $columnClicked, $hditem_pt
    +r);
    Win32::GUI::SendMessage($hwnd, HDM_SETITEM, $columnClicked, unpack('L!
    +', $hditem_ptr));
    ...
    $sendMessage->Call($hwnd, HDM_SETITEM, $columnClicked, unpack('L!', $h
    +ditem_ptr));
    
    $listview->Show(1); # refresh
    
  3. or download this
    use Win32::GuiTest qw( :ALL );
    
    ...
    SendMessage($hwnd, HDM_SETITEM, $columnClicked, $hditem_ptr->{ptr});
    FreeVirtualBuffer($hditem_ptr);
    ShowWindow($hwnd, 1); # refresh
    
  4. or download this
    sub HDM_FIRST    {0x1200}
    sub HDM_GETITEM  {HDM_FIRST+11}   # !WRONG: HDM_FIRST not a function c
    +all, result is 1211
    
  5. or download this
    sub HDM_GETITEM  {&HDM_FIRST+11}  # RIGHT: HDM_FIRST called, result is
    + 4619
    
  6. or download this
    sub HDI_WIDTH    {0x1}
    sub HDI_FORMAT   {0x4}
    ...
    
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1011271]
Approved by marto
Front-paged by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2015-07-07 02:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (86 votes), past polls