Click here to Skip to main content
15,889,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MFC dialog: Load jpg images from a folder and display the images one by one Pin
Richard MacCutchan29-Sep-09 3:27
mveRichard MacCutchan29-Sep-09 3:27 
GeneralRe: MFC dialog: Load jpg images from a folder and display the images one by one Pin
kilt30-Sep-09 4:16
kilt30-Sep-09 4:16 
GeneralRe: MFC dialog: Load jpg images from a folder and display the images one by one Pin
Richard MacCutchan30-Sep-09 6:02
mveRichard MacCutchan30-Sep-09 6:02 
QuestionSyntax For Intializer list for base contructer Pin
ForNow29-Sep-09 2:56
ForNow29-Sep-09 2:56 
QuestionRe: Syntax For Intializer list for base contructer Pin
CPallini29-Sep-09 3:18
mveCPallini29-Sep-09 3:18 
AnswerRe: Syntax For Intializer list for base contructer Pin
David Crow29-Sep-09 3:26
David Crow29-Sep-09 3:26 
GeneralRe: Syntax For Intializer list for base contructer Pin
ForNow29-Sep-09 4:19
ForNow29-Sep-09 4:19 
Questionusing FmtLines() function in CEdit class Pin
KASR129-Sep-09 2:41
KASR129-Sep-09 2:41 
please look into the below code block.

HBRUSH CTestApplnDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
   HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);

   int nId = pWnd->GetDlgCtrlID();
   CString sData;

   if (nCtlColor==CTLCOLOR_EDIT)
   {
      switch(nId)
      {
         case IDC_EDIT1:
            {
               m_EditCtrl.FmtLines(FALSE);
               m_EditCtrl.GetWindowText( sData );
            }
            break;
         default:
            break;
      }
   }

   return hbr;
}



The m_EditCtrl.FmtLines(FALSE) causes crash in my application.
Please help me to sove this problem.
QuestionRe: using FmtLines() function in CEdit class Pin
David Crow29-Sep-09 3:10
David Crow29-Sep-09 3:10 
AnswerRe: using FmtLines() function in CEdit class Pin
KASR129-Sep-09 19:07
KASR129-Sep-09 19:07 
GeneralRe: using FmtLines() function in CEdit class Pin
David Crow30-Sep-09 2:36
David Crow30-Sep-09 2:36 
GeneralRe: using FmtLines() function in CEdit class Pin
KASR130-Sep-09 2:41
KASR130-Sep-09 2:41 
AnswerRe: using FmtLines() function in CEdit class Pin
David Crow30-Sep-09 2:43
David Crow30-Sep-09 2:43 
AnswerRe: using FmtLines() function in CEdit class Pin
krmed29-Sep-09 5:10
krmed29-Sep-09 5:10 
GeneralRe: using FmtLines() function in CEdit class Pin
David Crow29-Sep-09 5:16
David Crow29-Sep-09 5:16 
GeneralRe: using FmtLines() function in CEdit class Pin
KASR130-Sep-09 21:40
KASR130-Sep-09 21:40 
QuestionRe: using FmtLines() function in CEdit class Pin
David Crow1-Oct-09 2:56
David Crow1-Oct-09 2:56 
GeneralRe: using FmtLines() function in CEdit class Pin
KASR129-Sep-09 19:09
KASR129-Sep-09 19:09 
GeneralRe: using FmtLines() function in CEdit class Pin
krmed30-Sep-09 0:36
krmed30-Sep-09 0:36 
GeneralRe: using FmtLines() function in CEdit class Pin
KASR130-Sep-09 0:59
KASR130-Sep-09 0:59 
Questionputenv() Pin
mohant$.net29-Sep-09 2:07
mohant$.net29-Sep-09 2:07 
AnswerRe: putenv() Pin
CPallini29-Sep-09 2:38
mveCPallini29-Sep-09 2:38 
GeneralRe: putenv() Pin
mohant$.net29-Sep-09 3:14
mohant$.net29-Sep-09 3:14 
GeneralRe: putenv() Pin
CPallini29-Sep-09 3:19
mveCPallini29-Sep-09 3:19 
QuestionRe: putenv() Pin
David Crow29-Sep-09 3:05
David Crow29-Sep-09 3:05 

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.