Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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
    Win32::GUI::SendMessage($hwnd, HDM_SETITEM, $columnClicked, unpack('L!
    +', $hditem_ptr));
    $sendMessage->Call($hwnd, HDM_SETITEM, $columnClicked, unpack('L!', $h
    $listview->Show(1); # refresh
  3. or download this
    use Win32::GuiTest qw( :ALL );
    SendMessage($hwnd, HDM_SETITEM, $columnClicked, $hditem_ptr->{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?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2016-02-10 00:42 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (329 votes), past polls