Click here to Skip to main content
15,909,539 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can I scroll a CFormView? Pin
Tomasz Sowinski19-Sep-01 7:15
Tomasz Sowinski19-Sep-01 7:15 
GeneralRe: How can I scroll a CFormView? Pin
Craig Miller19-Sep-01 9:54
Craig Miller19-Sep-01 9:54 
GeneralPostMessage... philosophy... Pin
Remi Morin19-Sep-01 6:10
Remi Morin19-Sep-01 6:10 
GeneralRe: PostMessage... philosophy... Pin
Tomasz Sowinski19-Sep-01 7:05
Tomasz Sowinski19-Sep-01 7:05 
GeneralRe: PostMessage... philosophy... Pin
Remi Morin19-Sep-01 7:44
Remi Morin19-Sep-01 7:44 
GeneralRe: PostMessage... philosophy... Pin
Tomasz Sowinski19-Sep-01 8:09
Tomasz Sowinski19-Sep-01 8:09 
GeneralRe: PostMessage... philosophy... Pin
Remi Morin19-Sep-01 9:02
Remi Morin19-Sep-01 9:02 
GeneralRe: PostMessage... philosophy... Pin
Tomasz Sowinski19-Sep-01 9:15
Tomasz Sowinski19-Sep-01 9:15 
Calling child directly is one possibility. However, you could also easily add your own information. Just derive some struct from NMHDR:
struct MyNotifyInfo : public NMHDR
{
int yourMember1;
char yourMember2[100];
};

You could also create struct with NMHDR as first member:
struct MyNotifyInfo
{
NMHDR nmhdr;
int yourMember1;
char yourMember2[100];
};

The second method is used by Windows SDK - these header files must be compilable even in plain old C which doesn't support inheritance. Have a look at MSDN docs for NMTREEVIEW, NMLISTVIEW or any struct named NMxxxx.

In the parent's handler, just cast NMHDR* to MyNotifyInfo* and you'll be OK.

Tomasz Sowinski -- http://www.shooltz.com
GeneralRe: PostMessage... philosophy... Pin
Remi Morin19-Sep-01 9:57
Remi Morin19-Sep-01 9:57 
GeneralRe: PostMessage... philosophy... Pin
Tomasz Sowinski19-Sep-01 10:20
Tomasz Sowinski19-Sep-01 10:20 
GeneralProblem with msadox.dll and msado15.dll Pin
19-Sep-01 5:27
suss19-Sep-01 5:27 
GeneralRe: Problem with msadox.dll and msado15.dll Pin
Remi Morin19-Sep-01 5:53
Remi Morin19-Sep-01 5:53 
GeneralProblem with msadox.dll and msado15.dll Pin
19-Sep-01 5:59
suss19-Sep-01 5:59 
GeneralRe: Problem with msadox.dll and msado15.dll Pin
Carlos Antollini19-Sep-01 5:58
Carlos Antollini19-Sep-01 5:58 
GeneralRe: Problem with msadox.dll and msado15.dll Pin
19-Sep-01 6:04
suss19-Sep-01 6:04 
GeneralLoadString... Pin
19-Sep-01 5:05
suss19-Sep-01 5:05 
GeneralRe: LoadString... Pin
Not Active19-Sep-01 6:04
mentorNot Active19-Sep-01 6:04 
GeneralRe: LoadString... Pin
19-Sep-01 8:06
suss19-Sep-01 8:06 
GeneralRe: LoadString... Pin
Not Active19-Sep-01 9:59
mentorNot Active19-Sep-01 9:59 
GeneralRe: LoadString... Pin
Steen Krogsgaard19-Sep-01 23:39
Steen Krogsgaard19-Sep-01 23:39 
GeneralRe: LoadString... Pin
Carlos Antollini19-Sep-01 10:20
Carlos Antollini19-Sep-01 10:20 
GeneralRe: LoadString... Pin
The_Server19-Sep-01 21:08
The_Server19-Sep-01 21:08 
GeneralRe: LoadString... Pin
The_Server19-Sep-01 21:09
The_Server19-Sep-01 21:09 
GeneralRe: LoadString... Pin
Steen Krogsgaard19-Sep-01 23:31
Steen Krogsgaard19-Sep-01 23:31 
GeneralRe: LoadString... Pin
Carlos Antollini19-Sep-01 8:26
Carlos Antollini19-Sep-01 8:26 

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.