Click here to Skip to main content
15,902,032 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: HICON to HBITMAP? Pin
Michael Dunn2-Sep-01 21:20
sitebuilderMichael Dunn2-Sep-01 21:20 
QuestionCreateDialogIndirect ToolWindow problem ? Pin
Christian Graus2-Sep-01 19:12
protectorChristian Graus2-Sep-01 19:12 
AnswerRe: CreateDialogIndirect ToolWindow problem ? Pin
Michael Dunn2-Sep-01 19:48
sitebuilderMichael Dunn2-Sep-01 19:48 
GeneralRe: CreateDialogIndirect ToolWindow problem ? Pin
Christian Graus2-Sep-01 19:53
protectorChristian Graus2-Sep-01 19:53 
GeneralText Area In Win32 Pin
2-Sep-01 18:36
suss2-Sep-01 18:36 
GeneralRe: Text Area In Win32 Pin
Christian Graus2-Sep-01 18:43
protectorChristian Graus2-Sep-01 18:43 
GeneralCListCtrl - 2 Pin
Shankar Chandra Bose2-Sep-01 14:45
Shankar Chandra Bose2-Sep-01 14:45 
GeneralRe: CListCtrl - 2 Pin
Ben Burnett2-Sep-01 19:24
Ben Burnett2-Sep-01 19:24 
The fact that there is no way to set an item's RECT and that ListViews only supports LVS_OWNERDRAWFIXED leads me to believe that you are, unfortunately, out of luck...

Unless, you only have one column in the ListView in question, then might I recommend moving to a ListBox instead... its WM_MEASUREITEM suffers the same problem ( only ever getting called once ), but you can set an items RECT at runtime ( like when the user clicks on it ).

void CMyZoomListBox::OnSelchange() 
{	
	if ( -1 != m_nLastSelection ) {

		SetItemHeight ( m_nLastSelection, m_nNormalSize );

	}
	
	m_nLastSelection = GetCurSel ();
	SetItemHeight ( m_nLastSelection, m_nZoomSize );

	Invalidate (); // update window to reflect size changes

}


Ben Burnett

---------
On the topic of code with no error handling -- It's not poor coding, it's "optimistic" Wink | ;)
GeneralPost Message. Pin
John Uhlenbrock2-Sep-01 14:06
John Uhlenbrock2-Sep-01 14:06 
GeneralRe: Post Message. Pin
Michael Dunn2-Sep-01 15:08
sitebuilderMichael Dunn2-Sep-01 15:08 
GeneralRe: Post Message. Pin
Matt Gullett2-Sep-01 16:00
Matt Gullett2-Sep-01 16:00 
GeneralRe: Post Message. Pin
Matt Gullett2-Sep-01 17:58
Matt Gullett2-Sep-01 17:58 
GeneralSimple DLL, Simple DLL, Simple DLL , P L E A S E !!! Pin
2-Sep-01 9:05
suss2-Sep-01 9:05 
GeneralRe: Simple DLL, Simple DLL, Simple DLL , P L E A S E !!! Pin
Mukkie2-Sep-01 10:44
Mukkie2-Sep-01 10:44 
GeneralThank you ! Pin
3-Sep-01 0:15
suss3-Sep-01 0:15 
GeneralRe: Thank you ! Pin
Mukkie3-Sep-01 12:35
Mukkie3-Sep-01 12:35 
GeneralRe: Thank you ! Pin
3-Sep-01 21:52
suss3-Sep-01 21:52 
GeneralRe: Simple DLL, Simple DLL, Simple DLL , P L E A S E !!! Pin
Jim A. Johnson2-Sep-01 13:21
Jim A. Johnson2-Sep-01 13:21 
Generalabout COleServerItem Pin
Maer7272-Sep-01 5:31
Maer7272-Sep-01 5:31 
Generalabout COleClientItem Pin
Maer7272-Sep-01 5:29
Maer7272-Sep-01 5:29 
GeneralBefore The System Pin
The_Server2-Sep-01 2:32
The_Server2-Sep-01 2:32 
GeneralRe: Before The System Pin
Anders Molin2-Sep-01 2:48
professionalAnders Molin2-Sep-01 2:48 
GeneralRe: Before The System Pin
The_Server2-Sep-01 10:50
The_Server2-Sep-01 10:50 
GeneralRe: Before The System Pin
2-Sep-01 3:10
suss2-Sep-01 3:10 
GeneralRe: Before The System Pin
The_Server2-Sep-01 10:52
The_Server2-Sep-01 10:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.