Click here to Skip to main content
15,887,328 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Error running debugger from Visual studio 2010 Pin
Richard MacCutchan22-Apr-15 23:22
mveRichard MacCutchan22-Apr-15 23:22 
AnswerRe: Error running debugger from Visual studio 2010 Pin
Maximilien22-Apr-15 6:59
Maximilien22-Apr-15 6:59 
QuestionVSS restore in C++ Pin
Wshwilfried21-Apr-15 23:04
Wshwilfried21-Apr-15 23:04 
AnswerRe: VSS restore in C++ Pin
Richard MacCutchan22-Apr-15 0:56
mveRichard MacCutchan22-Apr-15 0:56 
Question[MFC] Using the SS_OWNERDRAW style on a CStatic control Pin
Maximilien21-Apr-15 9:50
Maximilien21-Apr-15 9:50 
AnswerRe: [MFC] Using the SS_OWNERDRAW style on a CStatic control Pin
Richard Andrew x6421-Apr-15 11:22
professionalRichard Andrew x6421-Apr-15 11:22 
GeneralRe: [MFC] Using the SS_OWNERDRAW style on a CStatic control Pin
Maximilien22-Apr-15 3:13
Maximilien22-Apr-15 3:13 
AnswerRe: [MFC] Using the SS_OWNERDRAW style on a CStatic control Pin
Jochen Arndt21-Apr-15 21:24
professionalJochen Arndt21-Apr-15 21:24 
The usual method to switch to ownerdraw style is to use PreSubclassWindow:
C++
void CMyStatic::PreSubclassWindow()
{
    // Switch to owner-draw
    VERIFY(ModifyStyle(SS_TYPEMASK, SS_OWNERDRAW, 0));
    CStatic::PreSubclassWindow();
}

Note that SS_TYPEMASK should be passed for the flags to be removed because the lower style bits are not ored options but enumerations. If the current style is not SS_LEFT (which is zero) but set to something else in the resource editor, the resulting style might be not owner draw.

The probable reason that this style can't be set in the resource editor is that owner drawn controls must implement the DrawItem function. This can't be checked by the resource editor.
GeneralRe: [MFC] Using the SS_OWNERDRAW style on a CStatic control Pin
Maximilien22-Apr-15 3:00
Maximilien22-Apr-15 3:00 
GeneralRe: [MFC] Using the SS_OWNERDRAW style on a CStatic control Pin
Jochen Arndt22-Apr-15 3:41
professionalJochen Arndt22-Apr-15 3:41 
QuestionMultiple Client Support Server Application designed with Named Pipes hangs frequently Pin
SRIVATHSAN VIJAYA20-Apr-15 23:15
SRIVATHSAN VIJAYA20-Apr-15 23:15 
SuggestionRe: Multiple Client Support Server Application designed with Named Pipes hangs frequently Pin
Richard MacCutchan20-Apr-15 23:31
mveRichard MacCutchan20-Apr-15 23:31 
QuestionHow to implement usb touch driver in win ce 6.0 Pin
cedricvictor20-Apr-15 20:56
cedricvictor20-Apr-15 20:56 
SuggestionRe: How to implement usb touch driver in win ce 6.0 Pin
Richard MacCutchan20-Apr-15 21:22
mveRichard MacCutchan20-Apr-15 21:22 
QuestionExe file compatibility Pin
lor7517-Apr-15 8:57
lor7517-Apr-15 8:57 
AnswerRe: Exe file compatibility Pin
bling17-Apr-15 9:45
bling17-Apr-15 9:45 
AnswerRe: Exe file compatibility Pin
David Crow17-Apr-15 10:20
David Crow17-Apr-15 10:20 
AnswerRe: Exe file compatibility Pin
Frankie-C17-Apr-15 10:58
Frankie-C17-Apr-15 10:58 
AnswerRe: Exe file compatibility Pin
Albert Holguin1-May-15 4:56
professionalAlbert Holguin1-May-15 4:56 
QuestionUnable to invoke VIsual Studio debugger in Child process VS2012 pro Pin
ForNow17-Apr-15 3:01
ForNow17-Apr-15 3:01 
AnswerRe: Unable to debug Child process VS2012 pro follow up Pin
ForNow17-Apr-15 11:34
ForNow17-Apr-15 11:34 
GeneralI think I found a solution Pin
ForNow20-Apr-15 14:26
ForNow20-Apr-15 14:26 
QuestionRe: Unable to invoke VIsual Studio debugger in Child process VS2012 pro Pin
Richard MacCutchan17-Apr-15 21:17
mveRichard MacCutchan17-Apr-15 21:17 
AnswerRe: Unable to invoke VIsual Studio debugger in Child process VS2012 pro Pin
ForNow18-Apr-15 14:57
ForNow18-Apr-15 14:57 
Answervsjitdebugger Just in time Debugger not set on my laptop windows 8.1 VS 2012 pro Pin
ForNow19-Apr-15 3:16
ForNow19-Apr-15 3:16 

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.