Click here to Skip to main content
15,921,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHooking other applications? Pin
User 66587-Jun-03 8:20
User 66587-Jun-03 8:20 
AnswerRe: Hooking other applications? Pin
jmkhael7-Jun-03 11:48
jmkhael7-Jun-03 11:48 
GeneralRe: Hooking other applications? Pin
User 66587-Jun-03 12:44
User 66587-Jun-03 12:44 
GeneralFontSize Pin
Cpudood7-Jun-03 6:47
Cpudood7-Jun-03 6:47 
GeneralRe: FontSize Pin
Vikram A Punathambekar7-Jun-03 9:37
Vikram A Punathambekar7-Jun-03 9:37 
GeneralSmart Card Inserts & Removes Pin
Fad B7-Jun-03 6:39
Fad B7-Jun-03 6:39 
GeneralResize CToolbar Pin
Konrad Windszus7-Jun-03 3:24
Konrad Windszus7-Jun-03 3:24 
GeneralCListCtrl bug Pin
Konrad Windszus7-Jun-03 3:19
Konrad Windszus7-Jun-03 3:19 
I have got a CListCtrl (Report View) in a resizable CDialog. Whenever I resize this dialog, I change the column width via a call to CListCtrl::SetColumnWidth, so that the horizontal scrollbar isn't necessary.
Unfortunately there seem to be a bug in the CListCtrl. Whenever a vertical! scrollbar is showed (because there are more items in the CListCtrl than it can display) and I scroll down and then resize the CListCtrl that the vertical scrollbar disappears, the first row in CListCtrl is empty and not selectable. Seems that the scrolling doesn't work correctly in this specific case.
I use the following code in OnSize of the CListCtrl:
<br />
CRect rect;<br />
GetClientRect(rect);<br />
	<br />
SetColumnWidth( 0, rect.right - nLengthWidth );<br />
SetColumnWidth( 1, LVSCW_AUTOSIZE_USEHEADER );<br />
<br />
CListCtrl::OnSize(nType, cx, cy);<br />


Even I can reproduce the bug and found also some postings in the newsgroups from developers which had the same problem, I don't know how to solve the problem.

Please help me. I had the problem with MFC 4, 7, and now even with 7.1

Thanks in advance
Konrad
GeneralStatusbar text for toolbar Pin
Konrad Windszus7-Jun-03 3:11
Konrad Windszus7-Jun-03 3:11 
GeneralRe: Statusbar text for toolbar Pin
Maximilien7-Jun-03 3:33
Maximilien7-Jun-03 3:33 
GeneralRe: Statusbar text for toolbar Pin
Konrad Windszus7-Jun-03 3:36
Konrad Windszus7-Jun-03 3:36 
GeneralRe: Statusbar text for toolbar Pin
Roger Allen9-Jun-03 0:39
Roger Allen9-Jun-03 0:39 
Generaladdress parsing Pin
Rome Singh7-Jun-03 0:54
Rome Singh7-Jun-03 0:54 
GeneralRe: address parsing Pin
RichardGrimmer10-Jun-03 5:13
RichardGrimmer10-Jun-03 5:13 
GeneralQuestion about 'CreateEvent' method Pin
Anonymous6-Jun-03 23:35
Anonymous6-Jun-03 23:35 
GeneralRe: Question about 'CreateEvent' method Pin
Mike Nordell7-Jun-03 5:36
Mike Nordell7-Jun-03 5:36 
GeneralRe: Question about 'CreateEvent' method Pin
Michael Dunn7-Jun-03 6:44
sitebuilderMichael Dunn7-Jun-03 6:44 
GeneralClient Details Pin
SatyaDY6-Jun-03 21:45
SatyaDY6-Jun-03 21:45 
GeneralRe: Client Details Pin
Mike Nordell7-Jun-03 5:48
Mike Nordell7-Jun-03 5:48 
GeneralRe: Client Details Pin
Laimis7-Jun-03 9:25
Laimis7-Jun-03 9:25 
GeneralRe: Client Details Pin
SatyaDY8-Jun-03 17:52
SatyaDY8-Jun-03 17:52 
GeneralCPropertySheet &amp; CPropertyPage Pin
ladder6-Jun-03 19:25
ladder6-Jun-03 19:25 
GeneralRe: CPropertySheet &amp; CPropertyPage Pin
olinn7-Jun-03 1:24
olinn7-Jun-03 1:24 
GeneralRe: CPropertySheet &amp; CPropertyPage Pin
ladder8-Jun-03 17:10
ladder8-Jun-03 17:10 
GeneralRe: CPropertySheet &amp; CPropertyPage Pin
Joan M8-Jun-03 22:12
professionalJoan M8-Jun-03 22:12 

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.