Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 romping around the Monastery: (17)
As of 2014-12-19 16:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (88 votes), past polls