Click here to Skip to main content
15,912,504 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Thread in DLL Pin
aman20066-Aug-04 11:53
aman20066-Aug-04 11:53 
GeneralRe: Thread in DLL Pin
bikram singh6-Aug-04 23:21
bikram singh6-Aug-04 23:21 
GeneralMFC, CView, OpenGL, and the repaint problem Pin
Scolex6-Aug-04 9:34
Scolex6-Aug-04 9:34 
Generalreducing fractions Pin
rbboothe6-Aug-04 9:15
rbboothe6-Aug-04 9:15 
GeneralRe: reducing fractions Pin
alex.barylski6-Aug-04 9:18
alex.barylski6-Aug-04 9:18 
GeneralRe: reducing fractions Pin
Scolex6-Aug-04 9:50
Scolex6-Aug-04 9:50 
GeneralRe: reducing fractions Pin
Henry miller6-Aug-04 10:08
Henry miller6-Aug-04 10:08 
QuestionON_NOTIFY -> why ON_NOTIFY_REFLECT ? Pin
FriendOfAsherah6-Aug-04 8:52
FriendOfAsherah6-Aug-04 8:52 
Hi experts,
Using MFC , VC++ 6.0 ...
I have a DialogWindow with a CListCtrl derived Control called CInfoListCtrl.

class CInfoListCtrl : public CListCtrl ....

This uses an editfield (CEdit derived) which sends a notificationmessage to its parent:
(parent is the CInfoListCtrl-window )

CColEdit:
GetParent()->SendMessage(WM_NOTIFY, GetDlgCtrlID(), (LPARAM)&nmhdr);

So the parent should catch this with
ON_NOTIFY( LVN_ENDLABELEDIT, <idof editfield=""> , OnEndLabelEdit)

Thsi doessnt work !!! Ive to use :
ON_NOTIFY_REFLECT(LVN_ENDLABELEDIT, OnEndLabelEdit)

_in the parent window_ ???? WHY ????

The 2nd. question:
From the Parent (CInfoListCtrl) I tried to send the Not.Message to the Dialog (its parent).
This Dlg Window never receives the WM_NOTIFY - so WM_NOTIFY is reflected back to CInfoListCtrl

so
ON_NOTIFY(LVN_ENDLABELEDIT, IDC_VERKINFO_VALUES, OnEndlabeleditVerkinfoValues)
never handles any messages

Looking at code samples I found out, that there are some ListCtrls using this similar mechanism - the also use ON_NOTIFY_REFLECT to handle the editfields messages.

So are TN061 and TN062 not correct ?
(or is my brain still working in PERL , not VC++&MFC Smile | :) )

Confused | :confused: ** n
AnswerRe: ON_NOTIFY -&gt; why ON_NOTIFY_REFLECT ? Pin
FriendOfAsherah6-Aug-04 19:56
FriendOfAsherah6-Aug-04 19:56 
GeneralCapture printed documents Pin
Anonymous6-Aug-04 8:50
Anonymous6-Aug-04 8:50 
GeneralNeeded - MFC Grid feature Pin
PJ Arends6-Aug-04 8:34
professionalPJ Arends6-Aug-04 8:34 
GeneralRe: Needed - MFC Grid feature Pin
Maximilien6-Aug-04 8:55
Maximilien6-Aug-04 8:55 
GeneralRe: Needed - MFC Grid feature Pin
act_x6-Aug-04 11:51
act_x6-Aug-04 11:51 
GeneralS character in front of Strings Pin
mager6-Aug-04 8:13
mager6-Aug-04 8:13 
GeneralRe: S character in front of Strings Pin
PJ Arends6-Aug-04 8:19
professionalPJ Arends6-Aug-04 8:19 
GeneralDocking windows using API Pin
Member 10134436-Aug-04 7:33
Member 10134436-Aug-04 7:33 
GeneralCatch Ctrl-C Pin
Anonymous6-Aug-04 7:04
Anonymous6-Aug-04 7:04 
GeneralRe: Catch Ctrl-C Pin
Archer2828-Aug-04 19:13
Archer2828-Aug-04 19:13 
GeneralTooltips stopped working Pin
gokings6-Aug-04 6:40
gokings6-Aug-04 6:40 
GeneralRe: Tooltips stopped working Pin
Blake Miller6-Aug-04 8:38
Blake Miller6-Aug-04 8:38 
GeneralRe: Tooltips stopped working Pin
gokings6-Aug-04 22:36
gokings6-Aug-04 22:36 
GeneralRe: Tooltips stopped working Pin
Blake Miller9-Aug-04 5:04
Blake Miller9-Aug-04 5:04 
GeneralRe: Tooltips stopped working Pin
gokings9-Aug-04 6:46
gokings9-Aug-04 6:46 
GeneralNotifications of CButton (On Client) do not work when changing parents Pin
GNZ6-Aug-04 6:24
GNZ6-Aug-04 6:24 
GeneralWriting to Registry - non-printable characters Pin
Kaleb Pederson6-Aug-04 5:39
Kaleb Pederson6-Aug-04 5:39 

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.