Click here to Skip to main content
15,921,643 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Something to understand to new and delete!? Pin
Zac Howland17-Nov-06 5:26
Zac Howland17-Nov-06 5:26 
QuestionOwn Messages Pin
baerten17-Nov-06 1:20
baerten17-Nov-06 1:20 
AnswerRe: Own Messages Pin
Roger Stoltz17-Nov-06 2:02
Roger Stoltz17-Nov-06 2:02 
GeneralRe: Own Messages Pin
baerten17-Nov-06 3:25
baerten17-Nov-06 3:25 
GeneralRe: Own Messages Pin
Roger Stoltz17-Nov-06 4:21
Roger Stoltz17-Nov-06 4:21 
AnswerRe: Own Messages [modified] Pin
Tony Hill17-Nov-06 2:03
professionalTony Hill17-Nov-06 2:03 
GeneralRe: Own Messages Pin
baerten17-Nov-06 3:19
baerten17-Nov-06 3:19 
AnswerRe: Own Messages Pin
Viorel.17-Nov-06 3:29
Viorel.17-Nov-06 3:29 
baerten wrote:

[...]
Now, i need to send a message from the Grid to the View with a parameter.


I think you can send simple parameters using the third and fourth parameters of PostMessage function. For example:
GetParent()-> PostMessage(WM_COMMAND, WM_GRID_DOWN, (WPARAM)1234, (LPARAM)5678);

In case of longer data, try dynamic allocation:
MyData * data = new MyData(. . .);
GetParent()-> PostMessage(WM_COMMAND, WM_GRID_DOWN, 0, (LPARAM)data);

In this case the receiver should delete the data using delete. Alternatively use SendMessage:
MyData data(. . .);
GetParent()->SendMessage(WM_COMMAND, WM_GRID_DOWN, 0, (LPARAM)&data);

I hope this helps.
GeneralRe: Own Messages Pin
baerten17-Nov-06 4:03
baerten17-Nov-06 4:03 
AnswerRe: Own Messages Pin
S Douglas18-Nov-06 23:24
professionalS Douglas18-Nov-06 23:24 
QuestionShowing log messages from threads into a common ListBox Pin
Cyber Friend17-Nov-06 0:18
Cyber Friend17-Nov-06 0:18 
AnswerRe: Showing log messages from threads into a common ListBox Pin
Rage17-Nov-06 0:27
professionalRage17-Nov-06 0:27 
GeneralRe: Showing log messages from threads into a common ListBox Pin
Cedric Moonen17-Nov-06 1:32
Cedric Moonen17-Nov-06 1:32 
GeneralRe: Showing log messages from threads into a common ListBox Pin
Rage17-Nov-06 4:15
professionalRage17-Nov-06 4:15 
AnswerRe: Showing log messages from threads into a common ListBox Pin
Waldermort17-Nov-06 0:32
Waldermort17-Nov-06 0:32 
GeneralRe: Showing log messages from threads into a common ListBox Pin
Cyber Friend17-Nov-06 1:00
Cyber Friend17-Nov-06 1:00 
AnswerRe: Showing log messages from threads into a common ListBox Pin
David Crow17-Nov-06 3:15
David Crow17-Nov-06 3:15 
QuestionString Problem..... Pin
Programm3r17-Nov-06 0:12
Programm3r17-Nov-06 0:12 
AnswerRe: String Problem..... Pin
Rage17-Nov-06 0:16
professionalRage17-Nov-06 0:16 
GeneralRe: String Problem..... Pin
Programm3r17-Nov-06 0:33
Programm3r17-Nov-06 0:33 
AnswerRe: String Problem..... Pin
Roger Stoltz17-Nov-06 0:23
Roger Stoltz17-Nov-06 0:23 
GeneralRe: String Problem..... Pin
Programm3r17-Nov-06 0:35
Programm3r17-Nov-06 0:35 
QuestionHow to cast const char * to unsigned char * ? Pin
Mr.Brainley16-Nov-06 23:47
Mr.Brainley16-Nov-06 23:47 
AnswerRe: How to cast const char * to unsigned char * ? Pin
toxcct16-Nov-06 23:56
toxcct16-Nov-06 23:56 
GeneralRe: How to cast const char * to unsigned char * ? Pin
Mr.Brainley17-Nov-06 0:00
Mr.Brainley17-Nov-06 0:00 

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.