Click here to Skip to main content
15,897,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalfactorial program Pin
liboogie1920-Dec-02 4:18
liboogie1920-Dec-02 4:18 
GeneralRe: factorial program Pin
carrie20-Dec-02 4:51
carrie20-Dec-02 4:51 
GeneralRe: factorial program Pin
Bret20-Dec-02 10:04
Bret20-Dec-02 10:04 
GeneralAbout Cedit Newline Pin
Old Gun20-Dec-02 4:11
Old Gun20-Dec-02 4:11 
GeneralRe: About Cedit Newline Pin
Raphael Kindt20-Dec-02 4:33
Raphael Kindt20-Dec-02 4:33 
GeneralRe: About Cedit Newline Pin
Raphael Kindt20-Dec-02 4:39
Raphael Kindt20-Dec-02 4:39 
GeneralRe: About Cedit Newline Pin
Pavel Klocek20-Dec-02 4:39
Pavel Klocek20-Dec-02 4:39 
GeneralRe: not my answer Pin
Old Gun20-Dec-02 5:08
Old Gun20-Dec-02 5:08 
Thanks Raphaël Kindt , Raphaël Kindt, Pavel Klocek
I known how to do in design period, now I test CEdit subclass, following line doesn’t work, the cursor only moves one character when I press enter key.
//In Dialog BOOL CMyDlgEditDlg::OnInitDialog () function
...
m_MyEditCtrl.SubclassDlgItem (IDC_EDIT1,this);
...

//In CMyEdit
void CMyEdit::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags)
{
if ( nChar==VK_RETURN)
{
TRACE0("You Press Return Key\n");
ReplaceSel("\r\n");
return;
}
CEdit::OnChar(nChar, nRepCnt, nFlags);
}

QuestionIntelliSense forgetting things? Pin
S O S20-Dec-02 3:13
S O S20-Dec-02 3:13 
AnswerRe: IntelliSense forgetting things? Pin
Rage20-Dec-02 3:19
professionalRage20-Dec-02 3:19 
GeneralRe: IntelliSense forgetting things? Pin
Rickard Andersson2020-Dec-02 3:34
Rickard Andersson2020-Dec-02 3:34 
GeneralRe: IntelliSense forgetting things? Pin
Rage20-Dec-02 3:41
professionalRage20-Dec-02 3:41 
GeneralRe: IntelliSense forgetting things? Pin
Tim Smith20-Dec-02 3:41
Tim Smith20-Dec-02 3:41 
AnswerRe: IntelliSense forgetting things? Pin
jhwurmbach20-Dec-02 3:51
jhwurmbach20-Dec-02 3:51 
GeneralRe: IntelliSense forgetting things? Pin
Nitron20-Dec-02 4:21
Nitron20-Dec-02 4:21 
GeneralRe: IntelliSense forgetting things? Pin
S O S20-Dec-02 5:03
S O S20-Dec-02 5:03 
AnswerRe: IntelliSense forgetting things? Pin
Gary R. Wheeler22-Dec-02 5:46
Gary R. Wheeler22-Dec-02 5:46 
GeneralPrinter Driver Pin
tanis20-Dec-02 3:05
tanis20-Dec-02 3:05 
GeneralRe: Printer Driver Pin
Michael P Butler20-Dec-02 3:14
Michael P Butler20-Dec-02 3:14 
GeneralRe: Printer Driver Pin
tanis20-Dec-02 3:21
tanis20-Dec-02 3:21 
GeneralRe: Printer Driver Pin
Gary R. Wheeler22-Dec-02 5:53
Gary R. Wheeler22-Dec-02 5:53 
GeneralCALLBACK function not being called Pin
king_of_the_world20-Dec-02 2:59
king_of_the_world20-Dec-02 2:59 
GeneralRe: CALLBACK function not being called Pin
Rage20-Dec-02 3:22
professionalRage20-Dec-02 3:22 
GeneralRe: CALLBACK function not being called Pin
king_of_the_world20-Dec-02 12:02
king_of_the_world20-Dec-02 12:02 
GeneralGetting Print Dialog colour settings and resetting DIB pallette Pin
Anonymous20-Dec-02 2:55
Anonymous20-Dec-02 2:55 

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.