Click here to Skip to main content
15,902,870 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
SuggestionRe: Get rid of STL warnings Pin
David Crow11-Dec-13 5:19
David Crow11-Dec-13 5:19 
QuestionTrying to reuse code with a static library Pin
Richard Andrew x648-Dec-13 19:21
professionalRichard Andrew x648-Dec-13 19:21 
AnswerRe: Trying to reuse code with a static library Pin
Richard MacCutchan8-Dec-13 22:24
mveRichard MacCutchan8-Dec-13 22:24 
AnswerRe: Trying to reuse code with a static library Pin
Albert Holguin9-Dec-13 5:23
professionalAlbert Holguin9-Dec-13 5:23 
GeneralRe: Trying to reuse code with a static library Pin
Richard Andrew x649-Dec-13 6:35
professionalRichard Andrew x649-Dec-13 6:35 
GeneralRe: Trying to reuse code with a static library Pin
Albert Holguin9-Dec-13 6:43
professionalAlbert Holguin9-Dec-13 6:43 
AnswerRe: Trying to reuse code with a static library Pin
Gisle Vanem9-Dec-13 22:59
Gisle Vanem9-Dec-13 22:59 
QuestionMissing Button Click Message Pin
BarryPearlman8-Dec-13 8:50
BarryPearlman8-Dec-13 8:50 
The objective is to create a class that contains the methods to create and gather messages from a series of message dialogs by means of a series of buttons on a dialog created with the resource editor.

The app is being written with VS 2010 and the classes, events etc. utilizing the supplied Wizards. This is an SDI app with p_MFCls-> pointing to the MainFrameEx* object and p->MsgCls being the child of p_MFCls-> and a CWnd* object. p_Dlg-> is a pointer to the actual dialog box and is a CDialog* object parented by the p_MsgCls object.

FWIW: Windows 8.1

I have the following code (partial):

In p_MFCls:
//.h
CJBK_Msg*         p_MsgCls;

//.cpp

C#
p_MsgCls = new CJBK_Msg;
      ASSERT(p_MsgCls->Create(NULL, NULL, 0, CRect(0, 0, 0, 0), this, IDCls_Msg));


In p_MsgCls, when the appropriate message is received, we have:

//.h
CDialog*      p_DlgBox;

//.cpp
<pre lang="cs">p_DlgBox = new CDialog;
      ASSERT(p_DlgBox->Create(p_strMsgBox->nDlgBoxResID, this));



For the button(s), I used the Event Handler Wizard but whether I tell it to send the event to p_MFCls or p_MsgCls, it never gets there when I click the button control.

Can anyone spot something that I have missed?

Thanks and Happy Holidays to all,

Barry
QuestionRe: Missing Button Click Message Pin
Richard MacCutchan8-Dec-13 22:21
mveRichard MacCutchan8-Dec-13 22:21 
AnswerRe: Missing Button Click Message Pin
BarryPearlman9-Dec-13 3:45
BarryPearlman9-Dec-13 3:45 
GeneralRe: Missing Button Click Message Pin
Richard MacCutchan9-Dec-13 3:54
mveRichard MacCutchan9-Dec-13 3:54 
GeneralRe: Missing Button Click Message Pin
BarryPearlman9-Dec-13 4:08
BarryPearlman9-Dec-13 4:08 
GeneralRe: Missing Button Click Message Pin
Richard MacCutchan9-Dec-13 5:12
mveRichard MacCutchan9-Dec-13 5:12 
GeneralRe: Missing Button Click Message Pin
BarryPearlman9-Dec-13 9:27
BarryPearlman9-Dec-13 9:27 
AnswerRe: Missing Button Click Message Pin
Freak309-Dec-13 1:18
Freak309-Dec-13 1:18 
GeneralRe: Missing Button Click Message Pin
BarryPearlman9-Dec-13 4:02
BarryPearlman9-Dec-13 4:02 
GeneralRe: Missing Button Click Message Pin
Freak3010-Dec-13 22:51
Freak3010-Dec-13 22:51 
QuestionMorse code in Cpp Pin
Dhananjay RajeNimbalkar6-Dec-13 23:16
Dhananjay RajeNimbalkar6-Dec-13 23:16 
QuestionRe: Morse code in Cpp Pin
Richard MacCutchan7-Dec-13 1:18
mveRichard MacCutchan7-Dec-13 1:18 
AnswerRe: Morse code in Cpp Pin
jschell7-Dec-13 10:37
jschell7-Dec-13 10:37 
AnswerRe: Morse code in Cpp Pin
David Crow8-Dec-13 16:34
David Crow8-Dec-13 16:34 
AnswerRe: Morse code in Cpp Pin
Alan Balkany11-Dec-13 6:55
Alan Balkany11-Dec-13 6:55 
QuestionHow to prevent deleting files from Browse dialog Pin
tagopi4-Dec-13 22:33
tagopi4-Dec-13 22:33 
AnswerRe: How to prevent deleting files from Browse dialog Pin
CPallini5-Dec-13 0:08
mveCPallini5-Dec-13 0:08 
AnswerRe: How to prevent deleting files from Browse dialog Pin
David Crow5-Dec-13 4:48
David Crow5-Dec-13 4:48 

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.