Click here to Skip to main content
15,911,711 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to run a VB program in VC++ Pin
Xiangyang Liu 刘向阳10-Sep-03 15:26
Xiangyang Liu 刘向阳10-Sep-03 15:26 
GeneralRe: How to run a VB program in VC++ Pin
mr200310-Sep-03 16:16
mr200310-Sep-03 16:16 
GeneralRe: How to run a VB program in VC++ Pin
Michael P Butler11-Sep-03 1:37
Michael P Butler11-Sep-03 1:37 
GeneralNeed help with A I programming Pin
Snyp10-Sep-03 13:00
Snyp10-Sep-03 13:00 
GeneralRe: Need help with A I programming Pin
Dangleberry10-Sep-03 22:52
sussDangleberry10-Sep-03 22:52 
GeneralTree control getting grayed Pin
Binayak10-Sep-03 12:47
Binayak10-Sep-03 12:47 
GeneralUsing WS_HSCROLL in a dialog Pin
Marty1020304010-Sep-03 12:44
Marty1020304010-Sep-03 12:44 
GeneralRe: Using WS_HSCROLL in a dialog Pin
cje11-Sep-03 8:59
cje11-Sep-03 8:59 
when adding strings to the list box, you need to set the horizontal text extent so that the listbox knows that it needs to put up the horizontal scroll bars (one of my pet peeves!)

<br />
   int nExtent = m_ErrorList.GetHorizontalExtent();<br />
   CDC *pDC = GetDC();<br />
   CSize sizeTextExtent;<br />
<br />
   if ( m_pStrings )<br />
      {<br />
      CString cstrString;<br />
      for( int i=0; i < m_pStrings->GetSize(); i++ )<br />
         {            <br />
         cstrString = m_pStrings->GetAt( i );<br />
         sizeTextExtent = pDC->GetTextExtent( cstrString, cstrString.GetLength() );<br />
         if ( sizeTextExtent.cx > nExtent )<br />
            nExtent =  sizeTextExtent.cx;<br />
<br />
          m_ErrorList.AddString( cstrString );<br />
         }<br />
      }<br />
<br />
   m_ErrorList.SetHorizontalExtent( nExtent );<br />
   ReleaseDC( pDC );<br />

GeneralRe: Using WS_HSCROLL in a dialog Pin
Marty1020304011-Sep-03 9:35
Marty1020304011-Sep-03 9:35 
GeneralQuestion about sockets&#8230; Pin
RobJones10-Sep-03 12:03
RobJones10-Sep-03 12:03 
GeneralRe: Question about sockets&#8230; Pin
Larry Antram10-Sep-03 12:27
Larry Antram10-Sep-03 12:27 
GeneralRe: Question about sockets&#8230; Pin
RobJones10-Sep-03 12:32
RobJones10-Sep-03 12:32 
GeneralRe: Question about sockets… Pin
Larry Antram10-Sep-03 12:55
Larry Antram10-Sep-03 12:55 
GeneralRe: Question about sockets&#8230; Pin
Ted Ferenc10-Sep-03 12:37
Ted Ferenc10-Sep-03 12:37 
Generalarrow keys PLEASE HELP!! Pin
Marissa18210-Sep-03 10:59
Marissa18210-Sep-03 10:59 
GeneralRe: arrow keys PLEASE HELP!! Pin
Neville Franks10-Sep-03 11:33
Neville Franks10-Sep-03 11:33 
GeneralQuick Question Regarding Visual C++ .net Pin
Anonymous10-Sep-03 10:24
Anonymous10-Sep-03 10:24 
GeneralRe: Quick Question Regarding Visual C++ .net Pin
Michael Dunn10-Sep-03 10:29
sitebuilderMichael Dunn10-Sep-03 10:29 
GeneralRe: Quick Question Regarding Visual C++ .net Pin
ZoogieZork10-Sep-03 13:15
ZoogieZork10-Sep-03 13:15 
GeneralRe: Quick Question Regarding Visual C++ .net Pin
Anonymous11-Sep-03 5:22
Anonymous11-Sep-03 5:22 
Questionhow to do a dos-like thing in MFC prog Pin
ns10-Sep-03 9:39
ns10-Sep-03 9:39 
AnswerRe: how to do a dos-like thing in MFC prog Pin
David Crow10-Sep-03 9:46
David Crow10-Sep-03 9:46 
AnswerRe: how to do a dos-like thing in MFC prog Pin
Jagadeesh VN10-Sep-03 9:48
Jagadeesh VN10-Sep-03 9:48 
GeneralThanks to you both!!! Pin
ns10-Sep-03 9:55
ns10-Sep-03 9:55 
GeneralRe: Thanks to you both!!! Pin
Ravi Bhavnani10-Sep-03 10:57
professionalRavi Bhavnani10-Sep-03 10:57 

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.