Link to home
Start Free TrialLog in
Avatar of load_o_crap
load_o_crap

asked on

Setting Views in List View

Can I have the full source code to change to different Views for a list view...

my implementation of :


      DWORD dwNewStyle = LVS_SMALLICON;
      DWORD dwOldStyle = GetWindowLong(m_hWnd, GWL_STYLE);
      dwNewStyle |= (dwOldStyle &=~LVS_TYPEMASK);
      SetWindowLong(m_hWnd, GWL_STYLE, dwNewStyle);

doesnt seem to do anything. I insert this codes to a bunch of buttons which represent the different views. I change the variable dwNewStyle to support the 4 views.

Thanks..
ASKER CERTIFIED SOLUTION
Avatar of Zoppo
Zoppo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of load_o_crap
load_o_crap

ASKER

cool!