ListCtrl
-
Hi, I have a Custom ListCtrl in my application. I have to resize this listCtrl as and when the Size of the View changes. A tried a lot but the only this i am able to do is To change the ColumnWidth of Header Tabs acc. to the Size of the View. Plz help me out...... Vinod C S
-
Hi, I have a Custom ListCtrl in my application. I have to resize this listCtrl as and when the Size of the View changes. A tried a lot but the only this i am able to do is To change the ColumnWidth of Header Tabs acc. to the Size of the View. Plz help me out...... Vinod C S
vinivc wrote:
I have a Custom ListCtrl in my application. I have to resize this listCtrl as and when the Size of the View changes. A tried a lot but the only this i am able to do is To change the ColumnWidth of Header Tabs acc. to the Size of the View. Plz help me out......
See the following link http://www.codeproject.com/listctrl/xlistctrl.asp Knock out 't' from can't, You can if you think you can :cool:
-
Hi, I have a Custom ListCtrl in my application. I have to resize this listCtrl as and when the Size of the View changes. A tried a lot but the only this i am able to do is To change the ColumnWidth of Header Tabs acc. to the Size of the View. Plz help me out...... Vinod C S
try this LVCOLUMN stColumn = { 0 }; stColumn.mask = LVCF_WIDTH; stColumn.cx = 100/ the widht u required m_List.SetColumn( nColumnnNumber, &stColumn ); nave
-
Hi, I have a Custom ListCtrl in my application. I have to resize this listCtrl as and when the Size of the View changes. A tried a lot but the only this i am able to do is To change the ColumnWidth of Header Tabs acc. to the Size of the View. Plz help me out...... Vinod C S
vinivc wrote:
have a Custom ListCtrl in my application. I have to resize this listCtrl as and when the Size of the View changes. A tried a lot but the only this i am able to do is To change the ColumnWidth of Header Tabs acc. to the Size of the View.
Handle WM_SIZE message in View and use SetWindowPos or MoveWindow api to change size of the ListCtrl accordingly.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV
-
try this LVCOLUMN stColumn = { 0 }; stColumn.mask = LVCF_WIDTH; stColumn.cx = 100/ the widht u required m_List.SetColumn( nColumnnNumber, &stColumn ); nave
Naveen R wrote:
try thisLVCOLUMN stColumn = { 0 };stColumn.mask = LVCF_WIDTH;stColumn.cx = 100/ the widht u requiredm_List.SetColumn( nColumnnNumber, &stColumn );
How can we Increase or decrease the Size of listctrl by using it.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV
-
Naveen R wrote:
try thisLVCOLUMN stColumn = { 0 };stColumn.mask = LVCF_WIDTH;stColumn.cx = 100/ the widht u requiredm_List.SetColumn( nColumnnNumber, &stColumn );
How can we Increase or decrease the Size of listctrl by using it.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV
-
Naveen R wrote:
only size the header ctrl
Sorry to be sound rude.I believe that is not the question?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV