Click here to Skip to main content
15,917,795 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRichedit getting blue background when Gaining focus SetSel(0,0) in ON_EN_FOCUS solved problem !!!! Pin
ForNow29-May-15 10:09
ForNow29-May-15 10:09 
QuestionSetting Background Color of a CRichEdit Pin
ForNow28-May-15 7:35
ForNow28-May-15 7:35 
AnswerRe: Setting Background Color of a CRichEdit Pin
Richard MacCutchan28-May-15 20:44
mveRichard MacCutchan28-May-15 20:44 
GeneralRe: Setting Background Color of a CRichEdit Pin
ForNow29-May-15 7:52
ForNow29-May-15 7:52 
GeneralRe: Setting Background Color of a CRichEdit Pin
Richard MacCutchan29-May-15 21:25
mveRichard MacCutchan29-May-15 21:25 
QuestionIs it possible to change the background color of a CMFCButton which is under control of a visual manager theme? Pin
Maximilien27-May-15 5:18
Maximilien27-May-15 5:18 
AnswerRe: Is it possible to change the background color of a CMFCButton which is under control of a visual manager theme? Pin
Albert Holguin28-May-15 4:53
professionalAlbert Holguin28-May-15 4:53 
GeneralRe: Is it possible to change the background color of a CMFCButton which is under control of a visual manager theme? Pin
Maximilien28-May-15 7:41
Maximilien28-May-15 7:41 
SuggestionRe: Is it possible to change the background color of a CMFCButton which is under control of a visual manager theme? Pin
Richard MacCutchan28-May-15 5:29
mveRichard MacCutchan28-May-15 5:29 
GeneralRe: Is it possible to change the background color of a CMFCButton which is under control of a visual manager theme? Pin
Maximilien28-May-15 7:41
Maximilien28-May-15 7:41 
GeneralRe: Is it possible to change the background color of a CMFCButton which is under control of a visual manager theme? Pin
Richard MacCutchan28-May-15 20:42
mveRichard MacCutchan28-May-15 20:42 
GeneralRe: Is it possible to change the background color of a CMFCButton which is under control of a visual manager theme? Pin
Maximilien29-May-15 1:50
Maximilien29-May-15 1:50 
Questiontool-tip Pin
Member 1168600526-May-15 17:11
Member 1168600526-May-15 17:11 
AnswerRe: tool-tip Pin
_Flaviu26-May-15 21:41
_Flaviu26-May-15 21:41 
QuestionSimple anti virus project (Argv FILE* dirent.h) Pin
a random user24-May-15 4:49
a random user24-May-15 4:49 
AnswerRe: Simple anti virus project (Argv FILE* dirent.h) Pin
Richard MacCutchan24-May-15 6:09
mveRichard MacCutchan24-May-15 6:09 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
a random user24-May-15 6:21
a random user24-May-15 6:21 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
Richard MacCutchan24-May-15 6:47
mveRichard MacCutchan24-May-15 6:47 
OK, let us say that you have a path ("C:\Users\Noname\Documents\Test") in argv[1], and you now want to inspect a subdirectory called "images":
C++
int argvSize = strlen(argv[1]); // the number of characters in the base path
// calculate the space needed for the subdirectory as follows:
//     the length of the base path (argv[1])
//     plus the length of the new subdirectory
//     plus one for the backslash separator in front of the new directory
//     plus 1 for the trailing null character
//
int mallocSize = argvSize + strlen(subdir) + 1 + 1;
char* newPath = (char*)malloc(mallocSize);
strcpy(newPath, argv[1]);  // copy the root path
strcat(newPath, "\\");     // add a single trailing backslash - note two \\ required here,
                           // as the first one is treated as the escape character
strcat(newPath, subdir);   // append the new directory name at the end.
                           // The trailing null is appended automatically by strcat

//  newPath should now contain:
//                  C:\Users\Noname\Documents\Test\images

GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
a random user24-May-15 7:06
a random user24-May-15 7:06 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
Richard MacCutchan24-May-15 7:11
mveRichard MacCutchan24-May-15 7:11 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
a random user24-May-15 7:20
a random user24-May-15 7:20 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
Richard MacCutchan24-May-15 21:36
mveRichard MacCutchan24-May-15 21:36 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
a random user25-May-15 2:24
a random user25-May-15 2:24 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
Richard MacCutchan25-May-15 2:33
mveRichard MacCutchan25-May-15 2:33 
GeneralRe: Simple anti virus project (Argv FILE* dirent.h) Pin
a random user25-May-15 2:59
a random user25-May-15 2: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.