🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.win32
Article #2221

Frage : CButton Message Reflection

#2221
From: Stefan Bindel
Date: Tue, 08 Sep 1998 00:00
31 lines
1554 bytes
Hi,

warum geht folgendes nicht :
(Der Button wird in CMyView Created und wird auch angezeigt ...) :-(
Nur der Handler wird anscheinend nciht aufgerufen :-(

Hi,
Why doesn't this work ?
The button is created properly in CMyView, but the handler is not being
called :-(

mybutton.h:
-----------------
class CMyButton : public CButton
{
    ...
      afx_msg void OnClicked ( NMHDR * pNotifyStruct, LRESULT* result );
    ...
    DECLARE_MESSAGE_MAP()
}

mybutton.c:
----------------
BEGIN_MESSAGE_MAP(CZoomButton, CBitmapButton)
   ON_NOTIFY_REFLECT(BN_CLICKED, OnClicked)
END_MESSAGE_MAP()
...
void CMyButton::OnClicked ( NMHDR * pNotifyStruct, LRESULT* result )
{
  TRACE(" Button Click !!! \n");
}
Technical Details
Message-ID: <6t2th5$6rq$2@inf2.informatik.uni-stuttgart.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113dfb,c120eecea6b9a023,start
X-Google-Attributes: gid113dfb,public
X-Google-Thread: f6ef4,c120eecea6b9a023,start
X-Google-Attributes: gidf6ef4,public
From: "Stefan Bindel" <bindelsn@trick.informatik.uni-stuttgart.de>
Subject: Frage : CButton Message Reflection
Date: 1998/09/08
Message-ID: <6t2th5$6rq$2@inf2.informatik.uni-stuttgart.de>
X-Deja-AN: 388975543
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
X-Complaints-To: usenet@news.informatik.uni-stuttgart.de
X-Trace: inf2.informatik.uni-stuttgart.de 905247077 7034 129.69.189.32 (8 Sep 1998 09:31:17 GMT)
Organization: Fakultaet Informatik, Universitaet Stuttgart, Germany
NNTP-Posting-Date: 8 Sep 1998 09:31:17 GMT
Newsgroups: comp.os.ms-windows.programmer.win32,fido.ger.windows.prog