Click here to Skip to main content
15,921,959 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: get a pointer to the document Pin
sport18-Nov-01 23:22
sport18-Nov-01 23:22 
GeneralRe: get a pointer to the document Pin
Tim Deveaux18-Nov-01 3:48
Tim Deveaux18-Nov-01 3:48 
GeneralRe: get a pointer to the document Pin
sport18-Nov-01 23:25
sport18-Nov-01 23:25 
GeneralRe: get a pointer to the document Pin
Tim Deveaux21-Nov-01 13:43
Tim Deveaux21-Nov-01 13:43 
QuestionMS Flight Simulator modules...? Pin
17-Nov-01 5:24
suss17-Nov-01 5:24 
GeneralSetWindowOrg() screws with my layers! Pin
Simon Walton17-Nov-01 5:05
Simon Walton17-Nov-01 5:05 
GeneralRe: SetWindowOrg() screws with my layers! Pin
Simon Walton18-Nov-01 4:30
Simon Walton18-Nov-01 4:30 
QuestionHowto set background color on single char in CRichText? Pin
17-Nov-01 2:16
suss17-Nov-01 2:16 
Here is my code:
DWORD dwMask;
CHARFORMAT cf;

dwMask = m_wndChild.GetDefaultCharFormat(cf);
cf.dwMask = dwMask | CFM_COLOR ;
cf.dwEffects ^= CFE_AUTOCOLOR;

m_wndChild.SetWindowText(m_sTexto);

COLORREF Gris = RGB (192,192,192);
COLORREF Azul = RGB (20,20,200);
COLORREF Azul_Claro = RGB(50,50,255);
COLORREF Verde = RGB (0,255,0);
int Tamano_Array = m_arrPosicIluminar.GetSize();
for (int i=0; i < (Tamano_Array / 2);i++)
{
m_wndChild.SetSel(m_arrPosicIluminar[i*2],m_arrPosicIluminar[i*2+1]);
cf.crTextColor = Verde;
Confused | :confused: // cf.crBackColor = Gris; //This is not possible

m_wndChild.SetSelectionCharFormat(cf);
}
m_wndChild.SetSel(-1,0);

Thanks in Advance.
AnswerRe: Howto set background color on single char in CRichText? Pin
17-Nov-01 2:28
suss17-Nov-01 2:28 
GeneralATL/WTL CHeaderCtrl Pin
Canopener17-Nov-01 2:04
Canopener17-Nov-01 2:04 
GeneralTooltips problem ! Pin
Hadi Rezaee17-Nov-01 1:59
Hadi Rezaee17-Nov-01 1:59 
GeneralRe: Tooltips problem ! Pin
Roger Allen17-Nov-01 2:18
Roger Allen17-Nov-01 2:18 
GeneralRe: Tooltips problem ! Pin
Hadi Rezaee17-Nov-01 5:44
Hadi Rezaee17-Nov-01 5:44 
QuestionWhy I can't Open the mdb file correctly? Pin
white jungle17-Nov-01 1:54
white jungle17-Nov-01 1:54 
AnswerRe: Why I can't Open the mdb file correctly? Pin
Nish Nishant17-Nov-01 2:00
sitebuilderNish Nishant17-Nov-01 2:00 
GeneralRe: Why I can't Open the mdb file correctly? Pin
Simon Walton17-Nov-01 2:17
Simon Walton17-Nov-01 2:17 
GeneralRe: Why I can't Open the mdb file correctly? Pin
Rassman19-Nov-01 3:22
Rassman19-Nov-01 3:22 
AnswerRe: Why I can't Open the mdb file correctly? Pin
Hadi Rezaee17-Nov-01 2:02
Hadi Rezaee17-Nov-01 2:02 
GeneralRe: Why I can't Open the mdb file correctly? Pin
white jungle17-Nov-01 2:17
white jungle17-Nov-01 2:17 
GeneralRe: Why I can't Open the mdb file correctly? Pin
Hadi Rezaee17-Nov-01 6:28
Hadi Rezaee17-Nov-01 6:28 
GeneralWince Pin
17-Nov-01 1:44
suss17-Nov-01 1:44 
Generalabout .h file Pin
Maer72716-Nov-01 20:20
Maer72716-Nov-01 20:20 
GeneralRe: about .h file Pin
Christian Graus17-Nov-01 0:02
protectorChristian Graus17-Nov-01 0:02 
GeneralRe: about .h file Pin
Nish Nishant17-Nov-01 0:09
sitebuilderNish Nishant17-Nov-01 0:09 
GeneralRe: about .h file Pin
Christian Graus17-Nov-01 0:19
protectorChristian Graus17-Nov-01 0:19 

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.