00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #if !defined(AFX_LIVELISTSIZER_H__22F38637_F279_48B6_A0A4_1B3CD5E27F76__INCLUDED_)
00023 #define AFX_LIVELISTSIZER_H__22F38637_F279_48B6_A0A4_1B3CD5E27F76__INCLUDED_
00024
00025 #pragma once
00026
00027
00028 class CLiveListSizer
00029 {
00030
00031 public:
00032 CLiveListSizer(CListCtrl* pCtrl = NULL);
00033 virtual ~CLiveListSizer();
00034
00035
00036 protected:
00037 CListCtrl* m_pCtrl;
00038 int m_nWidth;
00039 int m_nColumns;
00040 int* m_pWidth;
00041 float* m_pTake;
00042
00043
00044 public:
00045 void Attach(CListCtrl* pCtrl, BOOL bScale = FALSE);
00046 void Detach();
00047 BOOL Resize(int nWidth = 0, BOOL bScale = FALSE);
00048
00049 };
00050
00051 #endif // !defined(AFX_LIVELISTSIZER_H__22F38637_F279_48B6_A0A4_1B3CD5E27F76__INCLUDED_)