Click here to Skip to main content
15,881,248 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCreating Custom Controls in MFC Pin
Bram van Kampen23-Aug-17 14:01
Bram van Kampen23-Aug-17 14:01 
AnswerRe: Creating Custom Controls in MFC Pin
Rick York23-Aug-17 15:53
mveRick York23-Aug-17 15:53 
AnswerRe: Creating Custom Controls in MFC Pin
Richard MacCutchan23-Aug-17 21:11
mveRichard MacCutchan23-Aug-17 21:11 
AnswerRe: Creating Custom Controls in MFC Pin
Jochen Arndt23-Aug-17 21:47
professionalJochen Arndt23-Aug-17 21:47 
QuestionMFC - painting on a secondary modeless dialog with OnPaint() Pin
Bonobo818-Aug-17 3:52
Bonobo818-Aug-17 3:52 
QuestionRe: MFC - painting on a secondary modeless dialog with OnPaint() Pin
Jochen Arndt18-Aug-17 4:13
professionalJochen Arndt18-Aug-17 4:13 
AnswerRe: MFC - painting on a secondary modeless dialog with OnPaint() Pin
Bonobo818-Aug-17 4:31
Bonobo818-Aug-17 4:31 
GeneralRe: MFC - painting on a secondary modeless dialog with OnPaint() Pin
Jochen Arndt18-Aug-17 5:05
professionalJochen Arndt18-Aug-17 5:05 
How have you done it in the second dialog?

You must pass the data to the second dialog in some way. Then just draw there aftwerwards calling InvalidateWindow() and UpdateWindow().

Or do that from the main dialog using the member variable of the second dialog:
C++
m_pModeLessDialog->DrawData();

Both (passing data and trigger redraw from the main dialog), requires that you have a member variable for the second dialog initialised in the button handler when the second dialog is created.
QuestionRe: MFC - painting on a secondary modeless dialog with OnPaint() Pin
Richard MacCutchan18-Aug-17 4:35
mveRichard MacCutchan18-Aug-17 4:35 
AnswerRe: MFC - painting on a secondary modeless dialog with OnPaint() Pin
Bonobo818-Aug-17 4:41
Bonobo818-Aug-17 4:41 
GeneralRe: MFC - painting on a secondary modeless dialog with OnPaint() Pin
Richard MacCutchan18-Aug-17 6:07
mveRichard MacCutchan18-Aug-17 6:07 
QuestionError in CodeProject article "Calculating a Rich Edit Control Minimum Size" Pin
ForNow15-Aug-17 2:27
ForNow15-Aug-17 2:27 
SuggestionRe: Error in CodeProject article "Calculating a Rich Edit Control Minimum Size" Pin
Richard Deeming15-Aug-17 2:53
mveRichard Deeming15-Aug-17 2:53 
AnswerRe: Error in CodeProject article "Calculating a Rich Edit Control Minimum Size" Pin
Jochen Arndt15-Aug-17 3:05
professionalJochen Arndt15-Aug-17 3:05 
GeneralRe: Error in CodeProject article "Calculating a Rich Edit Control Minimum Size" Pin
ForNow15-Aug-17 3:14
ForNow15-Aug-17 3:14 
Questionfunction soft thresholding Pin
saidinsan00000000013-Aug-17 3:13
saidinsan00000000013-Aug-17 3:13 
AnswerRe: function soft thresholding Pin
Victor Nijegorodov13-Aug-17 7:00
Victor Nijegorodov13-Aug-17 7:00 
GeneralRe: function soft thresholding Pin
David Crow14-Aug-17 4:07
David Crow14-Aug-17 4:07 
QuestionC function call question. Pin
samzcs11-Aug-17 3:18
samzcs11-Aug-17 3:18 
AnswerRe: C function call question. Pin
Chris Losinger11-Aug-17 3:36
professionalChris Losinger11-Aug-17 3:36 
GeneralRe: C function call question. Pin
samzcs11-Aug-17 3:50
samzcs11-Aug-17 3:50 
GeneralRe: C function call question. Pin
Chris Losinger11-Aug-17 3:52
professionalChris Losinger11-Aug-17 3:52 
GeneralRe: C function call question. Pin
samzcs11-Aug-17 4:22
samzcs11-Aug-17 4:22 
GeneralRe: C function call question. Pin
«_Superman_»14-Aug-17 15:50
professional«_Superman_»14-Aug-17 15:50 
GeneralRe: C function call question. Pin
Richard MacCutchan11-Aug-17 3:59
mveRichard MacCutchan11-Aug-17 3:59 

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.