Click here to Skip to main content
15,919,749 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Trouble with CMapStringToOb! Pin
bosfan6-Oct-06 1:44
bosfan6-Oct-06 1:44 
GeneralRe: Trouble with CMapStringToOb! Pin
prasad_som6-Oct-06 3:52
prasad_som6-Oct-06 3:52 
AnswerRe: Trouble with CMapStringToOb! Pin
benjymous6-Oct-06 1:22
benjymous6-Oct-06 1:22 
GeneralRe: Trouble with CMapStringToOb! Pin
bosfan6-Oct-06 1:46
bosfan6-Oct-06 1:46 
GeneralRe: Trouble with CMapStringToOb! Pin
bosfan6-Oct-06 2:01
bosfan6-Oct-06 2:01 
GeneralRe: Trouble with CMapStringToOb! Pin
benjymous6-Oct-06 4:42
benjymous6-Oct-06 4:42 
GeneralRe: Trouble with CMapStringToOb! Pin
bosfan6-Oct-06 7:38
bosfan6-Oct-06 7:38 
QuestionSending Messages Pin
baerten6-Oct-06 0:55
baerten6-Oct-06 0:55 
Hi everyone,

i had a component with diff PopUp Buttons, to catch the OnClick-Event i added a message-handler in the
Pane ( it herids from CWnd ) and a click on the different PopUp Buttons executes the code in the method On_xxxxxx_Click() in this Pane.

Now, i have created a modified the component and added a Click-Handle that determinates the Button of the component who's clicked.
Then i must send a message to the Pane to execute the On_xxxxxx_Click() ( The Pane doesn't change )

void MyTaskPanel::OnLButtonDown(UINT nFlags,CPoint point)<br />
{<br />
  // Determinates the button who's clicked<br />
  <br />
  TaskPanelGroup* Item;<br />
  <br />
  Item = HitTestGroup(point);<br />
  <br />
  UINT SelectedID;<br />
  if(Item) {<br />
    SelectedID = Item->GetID();                       // gets the correct ID of the Button<br />
    SendMessage(BN_CLICKED,(WPARAM)SelectedID,NULL);  // sends a message<br />
  } else {<br />
    // It wasn't a button<br />
  }<br />
}


In the pane i have this message-map :

BEGIN_MESSAGE_MAP(Home_Bht_Kunden_Side, CPaneView)<br />
	ON_BN_CLICKED(ID_OF_CLICKED_BUTTON,On_ID_OF_CLICKED_BUTTON_Click)<br />
        ...<br />
      END_MESSAGE_MAP()<br />
<br />
void ThePane::On_ID_OF_CLICKED_BUTTON_Click()<br />
{<br />
  int test = 9; // I never step here<br />
}<br />
<br />





The Question: If i send a message from out the component, where does the message arrives?
Can all Message-Maps receive this Message and trade it ( if it matches )


Big Thanks
AnswerRe: Sending Messages Pin
ctodor6-Oct-06 1:33
ctodor6-Oct-06 1:33 
QuestionRe: Sending Messages Pin
baerten6-Oct-06 2:44
baerten6-Oct-06 2:44 
AnswerRe: Sending Messages Pin
krmed6-Oct-06 7:09
krmed6-Oct-06 7:09 
AnswerRe: Sending Messages Pin
baerten8-Oct-06 21:20
baerten8-Oct-06 21:20 
Questionmigrating to .NET 2003 from visual studio 6.0 problem Pin
harsha_12346-Oct-06 0:12
harsha_12346-Oct-06 0:12 
AnswerRe: migrating to .NET 2003 from visual studio 6.0 problem Pin
_AnsHUMAN_ 6-Oct-06 0:24
_AnsHUMAN_ 6-Oct-06 0:24 
AnswerRe: migrating to .NET 2003 from visual studio 6.0 problem Pin
Rajesh R Subramanian6-Oct-06 0:28
professionalRajesh R Subramanian6-Oct-06 0:28 
GeneralRe: migrating to .NET 2003 from visual studio 6.0 problem Pin
toxcct6-Oct-06 0:32
toxcct6-Oct-06 0:32 
GeneralRe: migrating to .NET 2003 from visual studio 6.0 problem Pin
Rajesh R Subramanian6-Oct-06 1:13
professionalRajesh R Subramanian6-Oct-06 1:13 
AnswerRe: migrating to .NET 2003 from visual studio 6.0 problem Pin
toxcct6-Oct-06 0:35
toxcct6-Oct-06 0:35 
GeneralRe: migrating to .NET 2003 from visual studio 6.0 problem Pin
harsha_12346-Oct-06 0:48
harsha_12346-Oct-06 0:48 
GeneralRe: migrating to .NET 2003 from visual studio 6.0 problem Pin
Hamid_RT6-Oct-06 19:36
Hamid_RT6-Oct-06 19:36 
AnswerRe: migrating to .NET 2003 from visual studio 6.0 problem Pin
prasad_som6-Oct-06 0:42
prasad_som6-Oct-06 0:42 
AnswerRe: migrating to .NET 2003 from visual studio 6.0 problem Pin
bmzhao6-Oct-06 2:50
bmzhao6-Oct-06 2:50 
QuestionHow to get copy message? Pin
<color>Aljechin 6-Oct-06 0:00
<color>Aljechin 6-Oct-06 0:00 
AnswerRe: How to get copy message? Pin
Michael Dunn6-Oct-06 4:32
sitebuilderMichael Dunn6-Oct-06 4:32 
GeneralRe: How to get copy message? Pin
<color>Aljechin 6-Oct-06 20:06
<color>Aljechin 6-Oct-06 20:06 

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.