Click here to Skip to main content
15,896,726 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Coloring controls Pin
Hamid_RT17-Apr-07 5:57
Hamid_RT17-Apr-07 5:57 
QuestionStretchBlt fails in Window 98 Pin
PrabhuDev17-Apr-07 4:39
PrabhuDev17-Apr-07 4:39 
QuestionRe: StretchBlt fails in Window 98 Pin
Mark Salsbery17-Apr-07 5:37
Mark Salsbery17-Apr-07 5:37 
AnswerRe: StretchBlt fails in Window 98 Pin
PrabhuDev18-Apr-07 4:39
PrabhuDev18-Apr-07 4:39 
GeneralRe: StretchBlt fails in Window 98 Pin
Mark Salsbery18-Apr-07 5:50
Mark Salsbery18-Apr-07 5:50 
GeneralRe: StretchBlt fails in Window 98 Pin
PrabhuDev22-Apr-07 23:30
PrabhuDev22-Apr-07 23:30 
QuestionRe: StretchBlt fails in Window 98 Pin
Mark Salsbery23-Apr-07 4:54
Mark Salsbery23-Apr-07 4:54 
AnswerRe: StretchBlt fails in Window 98 Pin
PrabhuDev23-Apr-07 5:49
PrabhuDev23-Apr-07 5:49 
I have developed my application in Xp. I am running only the release build in windows 98. This is the function i am using to display the text.

DisplayText(CDC* pDC, const CRect& rect, const CString& strText)
{
ASSERT(NULL != pDC);
int iPrevMode = pDC->SetBkMode(TRANSPARENT);
COLORREF clrTextColor = RGB(255, 255, 255);
pDC->SetTextColor(clrTextColor);
CRect rectDisplay = rect;
rectDisplay.NormalizeRect();
CString strTextOut = strText;
pDC->DrawText(strTextOut, rectDisplay, DT_CENTER|DT_SINGLELINE|DT_BOTTOM);
pDC->SetBkMode(iPrevMode);
}

sometimes the function crashes in the drawtext function.
GeneralRe: StretchBlt fails in Window 98 Pin
Mark Salsbery23-Apr-07 6:27
Mark Salsbery23-Apr-07 6:27 
AnswerRe: StretchBlt fails in Window 98 Pin
Blake Miller17-Apr-07 5:45
Blake Miller17-Apr-07 5:45 
QuestionChecking for integrity of a .dll file Pin
Sauce!17-Apr-07 3:48
Sauce!17-Apr-07 3:48 
AnswerRe: Checking for integrity of a .dll file Pin
Blake Miller17-Apr-07 5:47
Blake Miller17-Apr-07 5:47 
AnswerRe: Checking for integrity of a .dll file Pin
James R. Twine17-Apr-07 7:20
James R. Twine17-Apr-07 7:20 
GeneralRe: Checking for integrity of a .dll file [modified] Pin
Sauce!17-Apr-07 21:03
Sauce!17-Apr-07 21:03 
GeneralRe: Checking for integrity of a .dll file Pin
James R. Twine18-Apr-07 16:09
James R. Twine18-Apr-07 16:09 
QuestionAFX_ID_PREVIEW_CLOSE - Help!! Pin
jerome_data17-Apr-07 3:15
jerome_data17-Apr-07 3:15 
QuestionOpen Dialog in Thread Pin
baerten17-Apr-07 2:37
baerten17-Apr-07 2:37 
AnswerRe: Open Dialog in Thread Pin
Arman S.17-Apr-07 2:51
Arman S.17-Apr-07 2:51 
GeneralRe: Open Dialog in Thread Pin
baerten17-Apr-07 3:00
baerten17-Apr-07 3:00 
GeneralRe: Open Dialog in Thread Pin
Nibu babu thomas17-Apr-07 3:11
Nibu babu thomas17-Apr-07 3:11 
Questionwhat is "hooks or hooking" in the mfc Pin
kevien17-Apr-07 2:04
kevien17-Apr-07 2:04 
AnswerRe: what is "hooks or hooking" in the mfc Pin
James R. Twine17-Apr-07 2:44
James R. Twine17-Apr-07 2:44 
QuestionHow to set menuitem ID in owner drawn menu? Pin
Atul2317-Apr-07 2:02
Atul2317-Apr-07 2:02 
AnswerRe: How to set menuitem ID in owner drawn menu? Pin
sthotakura17-Apr-07 7:27
sthotakura17-Apr-07 7:27 
Questionhow to link dll Pin
viduran17-Apr-07 1:47
viduran17-Apr-07 1:47 

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.