Click here to Skip to main content
15,894,017 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionScrolling edit control to bottom? Pin
IGx891-Apr-03 14:07
IGx891-Apr-03 14:07 
AnswerRe: Scrolling edit control to bottom? Pin
Gary R. Wheeler1-Apr-03 14:30
Gary R. Wheeler1-Apr-03 14:30 
GeneralRe: Scrolling edit control to bottom? Pin
IGx891-Apr-03 14:40
IGx891-Apr-03 14:40 
QuestionPurify or BoundsChecker? Pin
Jon Sagara1-Apr-03 13:45
Jon Sagara1-Apr-03 13:45 
AnswerRe: Purify or BoundsChecker? Pin
dahicke1-Apr-03 13:55
dahicke1-Apr-03 13:55 
AnswerRe: Purify or BoundsChecker? Pin
Taka Muraoka1-Apr-03 13:58
Taka Muraoka1-Apr-03 13:58 
AnswerRe: Purify or BoundsChecker? Pin
Mustafa Demirhan1-Apr-03 21:20
Mustafa Demirhan1-Apr-03 21:20 
GeneralBN_CLICKED Pin
lucy1-Apr-03 11:52
lucy1-Apr-03 11:52 
I created a new class based on CButton -- CMyButton. I add a message notification handler in CMyButton.cpp for =BN_CLICKED to change an protected member variable of CMyButton.

void CMyButton::OnClicked()
{
    m_nState += 1;
}


Using resource editor, I put an instance of CMyButton to my dialog template. I want my dialog to handle the BN_CLICKED also, do some other stuff.

void CMyDlg::OnMyBtn()
{
    MessageBox("Button pressed.");
}


The problem is: CMyDlg::OnMyBtn is never called, even though I add the style of "Notify" to the button instance in the resource editor. What am I missing here?

TIA!
GeneralRe: BN_CLICKED Pin
Gary R. Wheeler1-Apr-03 14:02
Gary R. Wheeler1-Apr-03 14:02 
GeneralRe: BN_CLICKED Pin
lucy2-Apr-03 5:22
lucy2-Apr-03 5:22 
GeneralMDI maximized & restored Pin
Brian Shifrin1-Apr-03 11:50
Brian Shifrin1-Apr-03 11:50 
GeneralPointer access Pin
Gabor Kalman1-Apr-03 11:13
Gabor Kalman1-Apr-03 11:13 
GeneralRe: Pointer access Pin
Dave Bryant1-Apr-03 11:29
Dave Bryant1-Apr-03 11:29 
GeneralSize of dialog in resource Pin
JGranborg1-Apr-03 10:56
JGranborg1-Apr-03 10:56 
GeneralRe: Size of dialog in resource Pin
Gary R. Wheeler1-Apr-03 14:08
Gary R. Wheeler1-Apr-03 14:08 
GeneralDynamic Arrays and Array sizes Pin
einst9921-Apr-03 10:41
einst9921-Apr-03 10:41 
GeneralRe: Dynamic Arrays and Array sizes Pin
Chris Losinger1-Apr-03 10:49
professionalChris Losinger1-Apr-03 10:49 
GeneralRe: Dynamic Arrays and Array sizes Pin
einst9921-Apr-03 11:33
einst9921-Apr-03 11:33 
GeneralRe: Dynamic Arrays and Array sizes Pin
Nick Parker1-Apr-03 11:56
protectorNick Parker1-Apr-03 11:56 
GeneralRe: Dynamic Arrays and Array sizes Pin
einst9921-Apr-03 14:12
einst9921-Apr-03 14:12 
GeneralRe: Dynamic Arrays and Array sizes Pin
Nick Parker1-Apr-03 14:55
protectorNick Parker1-Apr-03 14:55 
GeneralRe: Dynamic Arrays and Array sizes Pin
Dave Bryant1-Apr-03 10:49
Dave Bryant1-Apr-03 10:49 
GeneralRe: Dynamic Arrays and Array sizes Pin
John R. Shaw2-Apr-03 11:10
John R. Shaw2-Apr-03 11:10 
Questioncannot run on windows95?? Pin
lucy1-Apr-03 9:40
lucy1-Apr-03 9:40 
AnswerRe: cannot run on windows95?? Pin
Chris Losinger1-Apr-03 9:42
professionalChris Losinger1-Apr-03 9:42 

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.