Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2017-07-23 16:57 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (347 votes). Check out past polls.