Click here to Skip to main content
15,566,096 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionStatic OwnerDraw SS_OWNERDRAW DrawItem not being called Pin
ForNow7-Feb-22 15:53
ForNow7-Feb-22 15:53 
AnswerRe: Static OwnerDraw SS_OWNERDRAW DrawItem not being called Pin
Richard MacCutchan7-Feb-22 22:08
mveRichard MacCutchan7-Feb-22 22:08 
GeneralRe: Static OwnerDraw SS_OWNERDRAW DrawItem not being called Pin
Victor Nijegorodov7-Feb-22 23:49
Victor Nijegorodov7-Feb-22 23:49 
GeneralRe: Static OwnerDraw SS_OWNERDRAW DrawItem not being called Pin
Richard MacCutchan8-Feb-22 0:39
mveRichard MacCutchan8-Feb-22 0:39 
AnswerRe: Static OwnerDraw SS_OWNERDRAW DrawItem not being called Pin
Victor Nijegorodov7-Feb-22 23:42
Victor Nijegorodov7-Feb-22 23:42 
GeneralRe: Static OwnerDraw SS_OWNERDRAW DrawItem not being called Pin
ForNow8-Feb-22 2:23
ForNow8-Feb-22 2:23 
GeneralRe: It gets called at the end of the OnInitDialog Pin
ForNow8-Feb-22 12:25
ForNow8-Feb-22 12:25 
Questionways to write code for a class Pin
Calin Negru6-Feb-22 8:43
Calin Negru6-Feb-22 8:43 
This subject is a foggy topic in my head could you help me clarify things a little.
basically there are two ways to write a class in c++
-declare a class and add in the class body only class member variables and function declarations and then layout the code for function bodies somewhere outside (in the same cpp file or in a different cpp file if the class declaration was made in a header file)
-declare a class and add in the class body class member variables and function bodies (not just the declarations), the later solution resembling how things are done in C#. The former approach can be used in the main cpp file but also in a c++ header file. The later approach can only be used in the main cpp file is that correct? could you place for instance a class declaration containing function bodies (not just declarations) in a another cpp file belonging to the same project or in a header file?
Is it that the h and cpp file of the same name are compiled into a single binary file which is then used by the binary form of the main cpp file? and that the header file is there just as an index/entry point to the class functions
AnswerRe: ways to write code for a class Pin
Mircea Neacsu6-Feb-22 10:15
Mircea Neacsu6-Feb-22 10:15 
AnswerRe: ways to write code for a class Pin
Greg Utas6-Feb-22 11:16
mveGreg Utas6-Feb-22 11:16 
GeneralRe: ways to write code for a class Pin
Calin Negru7-Feb-22 0:28
Calin Negru7-Feb-22 0:28 
QuestionC++ Pin
Naveenkumarreddy Ramireddy6-Feb-22 7:44
Naveenkumarreddy Ramireddy6-Feb-22 7:44 
AnswerRe: C++ Pin
trønderen6-Feb-22 9:00
trønderen6-Feb-22 9:00 
AnswerRe: C++ Pin
Victor Nijegorodov6-Feb-22 9:50
Victor Nijegorodov6-Feb-22 9:50 
AnswerRe: C++ Pin
Artem Moroz8-Feb-22 10:19
Artem Moroz8-Feb-22 10:19 
QuestionRichEdit Streamin SF_TEXT not appearing Pin
ForNow30-Jan-22 15:58
ForNow30-Jan-22 15:58 
AnswerRe: RichEdit Streamin SF_TEXT not appearing Pin
Victor Nijegorodov30-Jan-22 21:43
Victor Nijegorodov30-Jan-22 21:43 
GeneralRe: RichEdit Streamin SF_TEXT not appearing Pin
ForNow30-Jan-22 21:48
ForNow30-Jan-22 21:48 
GeneralRe: RichEdit Streamin SF_TEXT not appearing CODE POSTED !!!!! Pin
ForNow31-Jan-22 2:32
ForNow31-Jan-22 2:32 
GeneralRe: RichEdit Streamin SF_TEXT not appearing CODE POSTED !!!!! Pin
Victor Nijegorodov31-Jan-22 2:45
Victor Nijegorodov31-Jan-22 2:45 
GeneralRe: RichEdit Streamin SF_TEXT not appearing CODE POSTED !!!!! Pin
ForNow31-Jan-22 3:11
ForNow31-Jan-22 3:11 
GeneralRe: RichEdit Streamin SF_TEXT not appearing CODE POSTED !!!!! Pin
Victor Nijegorodov31-Jan-22 3:17
Victor Nijegorodov31-Jan-22 3:17 
GeneralRe: RichEdit Streamin SF_TEXT not appearing CODE POSTED !!!!! Pin
ForNow31-Jan-22 3:31
ForNow31-Jan-22 3:31 
GeneralRe: RichEdit Streamin SF_TEXT not appearing CODE POSTED !!!!! Pin
Victor Nijegorodov31-Jan-22 11:34
Victor Nijegorodov31-Jan-22 11:34 
GeneralRe: RichEdit Streamin SF_TEXT not appearing CODE POSTED !!!!! Pin
ForNow31-Jan-22 11:39
ForNow31-Jan-22 11:39 

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.