Click here to Skip to main content
15,910,661 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Inserting Carriage return line feed into CRichEdit Pin
Richard Andrew x6431-Jan-12 14:10
professionalRichard Andrew x6431-Jan-12 14:10 
AnswerRe: Inserting Carriage return line feed into CRichEdit Pin
Richard MacCutchan31-Jan-12 21:33
mveRichard MacCutchan31-Jan-12 21:33 
QuestionComputer ID's for Licensing Purposes Pin
Bram van Kampen31-Jan-12 12:46
Bram van Kampen31-Jan-12 12:46 
AnswerRe: Computer ID's for Licensing Purposes Pin
Richard Andrew x6431-Jan-12 14:15
professionalRichard Andrew x6431-Jan-12 14:15 
GeneralRe: Computer ID's for Licensing Purposes Pin
Bram van Kampen2-Feb-12 14:30
Bram van Kampen2-Feb-12 14:30 
QuestionRadio button text color not set Pin
MKC00231-Jan-12 5:57
MKC00231-Jan-12 5:57 
QuestionRe: Radio button text color not set Pin
Richard MacCutchan31-Jan-12 21:30
mveRichard MacCutchan31-Jan-12 21:30 
GeneralRe: Radio button text color not set Pin
MKC0021-Feb-12 7:18
MKC0021-Feb-12 7:18 
I have dialog base application, dialog box contains one radio button. to set the text color of radio button
HBRUSH CtestDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
......
// TODO: Change any attributes of the DC here
if (pWnd->GetDlgCtrlID() == IDC_RADIO1)
{
pDC->SetTextColor (RGB(128,0,0)); // blue

}
.....
}

This code works fine and radio button color gets changed
but if i use xp theme in this project then text color of radio button does not set.

To set xp theme, i add one custom resource which contains

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly
xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity
processorArchitecture="x86"
version="5.1.0.0"
type="win32"
name="testdlg.exe"/>
<description>testdlg</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
publicKeyToken="6595b64144ccf1df"
language="*"
processorArchitecture="x86"/>
</dependentAssembly>
</dependency>
</assembly>
AnswerRe: Radio button text color not set Pin
Richard MacCutchan1-Feb-12 7:40
mveRichard MacCutchan1-Feb-12 7:40 
GeneralRe: Radio button text color not set Pin
MKC0022-Feb-12 19:29
MKC0022-Feb-12 19:29 
GeneralRe: Radio button text color not set Pin
Richard MacCutchan2-Feb-12 22:54
mveRichard MacCutchan2-Feb-12 22:54 
QuestionHelp! Use a sentence, positive and negative output, For example:1 -1 . 1000 -1000 Can use a formal parameters,Can't use loop Pin
Cary Hill31-Jan-12 3:10
Cary Hill31-Jan-12 3:10 
AnswerRe: Help! Use a sentence, positive and negative output, For example:1 -1 . 1000 -1000 Can use a formal parameters,Can't use loop Pin
Albert Holguin31-Jan-12 3:27
professionalAlbert Holguin31-Jan-12 3:27 
QuestionRe: Help! Use a sentence, positive and negative output, For example:1 -1 . 1000 -1000 Can use a formal parameters,Can't use loop Pin
David Crow31-Jan-12 4:52
David Crow31-Jan-12 4:52 
AnswerRe: Help! Use a sentence, positive and negative output, For example:1 -1 . 1000 -1000 Can use a formal parameters,Can't use loop Pin
jschell31-Jan-12 8:38
jschell31-Jan-12 8:38 
GeneralRe: Help! Use a sentence, positive and negative output, For example:1 -1 . 1000 -1000 Can use a formal parameters,Can't use loop Pin
Bram van Kampen31-Jan-12 11:55
Bram van Kampen31-Jan-12 11:55 
GeneralRe: Help! Use a sentence, positive and negative output, For example:1 -1 . 1000 -1000 Can use a formal parameters,Can't use loop Pin
ThatsAlok31-Jan-12 19:02
ThatsAlok31-Jan-12 19:02 
Questionstrange realization of StrToD() Pin
a_matseevsky31-Jan-12 2:22
a_matseevsky31-Jan-12 2:22 
AnswerRe: strange realization of StrToD() Pin
CPallini31-Jan-12 2:39
mveCPallini31-Jan-12 2:39 
GeneralRe: strange realization of StrToD() Pin
a_matseevsky31-Jan-12 3:37
a_matseevsky31-Jan-12 3:37 
GeneralRe: strange realization of StrToD() Pin
Chris Losinger31-Jan-12 4:04
professionalChris Losinger31-Jan-12 4:04 
GeneralRe: strange realization of StrToD() Pin
a_matseevsky31-Jan-12 6:10
a_matseevsky31-Jan-12 6:10 
AnswerRe: strange realization of StrToD() Pin
JackDingler31-Jan-12 11:54
JackDingler31-Jan-12 11:54 
GeneralRe: strange realization of StrToD() Pin
a_matseevsky31-Jan-12 12:32
a_matseevsky31-Jan-12 12:32 
QuestionC program to extract values from EXCEL file Pin
Faez Shingeri31-Jan-12 1:46
Faez Shingeri31-Jan-12 1:46 

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.