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

C / C++ / MFC

 
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 
AnswerRe: ON_NOTIFY -> why ON_NOTIFY_REFLECT ? Pin
FriendOfAsherah6-Aug-04 19:56
FriendOfAsherah6-Aug-04 19:56 
I found the answer myself -> sorry for bothering you
It was an older code and when I developed it I want to treat the CInfoListCtrl like the listctrl.

WTF | :WTF: So the Editfields sends the notification message BUT WITH
hwndFrom = GetParent()->GetSafeHwnd();
(The same as the CListCtrl does when editing a label)

Now I inserted the messagehandling for the Editfield into the CInfoListCtrl and not the Dialog anymore ->
Looking at the SendMessage command in the Editfield code:
GetParent()->SendMessage(WM_NOTIFY, ....)
Oh - tho whom its sending the message ? to the CInfoListCtrl(its parent window) but
this never received WM_NOTIFY (now I know why WTF | :WTF: )
(The notify msg handling seems to be very starnge ...)

2nd mistake:
After implementing ON_NOTIFY_REFLECT in the CInfoListCtrl
I was lucky for at least 2 minutes.
This because the CDialog class never receives a WM_NOTYFY ->
looking at TN061 -> "WM_NOTIFY_REFLECT overrides WM_NOTIFY"

Now everything semms to be clear .....

NO, NOT EVERYTHING !
Whats about :
GetParent()->SendMessage(WM_NOTIFY, ....)
Why (OK why is a not allowed type of question )
Why does MFC ignore the instance of the message sender and uses hwndFrom of the notif.msg structure hdr instead ?
Can I send this message _from_ anywhere ?
Confused | :confused: ** (n/4)
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 
GeneralRe: Writing to Registry - non-printable characters Pin
David Crow6-Aug-04 6:02
David Crow6-Aug-04 6:02 

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.