Hope most of them seen the Options Dialog provided by the MSN Messenger. It looks like this..

MSN Settings Dialog

MSN Settings Dialog

Note the Height of the Items in the Left side ListBox. How can we achieve that in our MFC program ?

By Default, Windows provide the minimum height for each of the item. Like this


You can increase the height by using the member function SetItemHeight(..).

extern CListBox* pmyListBox;
pmyListBox->SetItemHeight( 0, 25 );

Now our dialog also showing the same effect ๐Ÿ™‚

Feeling good now ??

Yes.. really…

forย  https://vctipsplusplus.wordpress.com/