Click here to Skip to main content
15,914,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Redirect Message Box Messages, Pin
Code-o-mat4-Oct-10 9:23
Code-o-mat4-Oct-10 9:23 
GeneralRe: Redirect Message Box Messages, Pin
Sameerkumar Namdeo4-Oct-10 22:27
Sameerkumar Namdeo4-Oct-10 22:27 
GeneralRe: Redirect Message Box Messages, Pin
Code-o-mat5-Oct-10 23:23
Code-o-mat5-Oct-10 23:23 
GeneralRe: Redirect Message Box Messages, Pin
Joschwenk6666-Oct-10 2:49
Joschwenk6666-Oct-10 2:49 
GeneralRe: Redirect Message Box Messages, Pin
Code-o-mat6-Oct-10 2:52
Code-o-mat6-Oct-10 2:52 
QuestionObtaining the thread id of the window which have keyboard focus Pin
emmmatty14-Oct-10 2:15
emmmatty14-Oct-10 2:15 
AnswerRe: Obtaining the thread id of the window which have keyboard focus Pin
bleedingfingers4-Oct-10 2:26
bleedingfingers4-Oct-10 2:26 
Questiondouble buffering Pin
aangerma4-Oct-10 1:18
aangerma4-Oct-10 1:18 
Hello,
I have an owner-draw listBox that while updating its flicks, I tried the solution of treating the event OnEraseBkgnd its didn't work, so I tried the other posibility - double buffering

void CIconListBox::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct)
{
pDC = CDC::FromHandle(lpDrawItemStruct->hDC);
HDC memDC1 = CreateCompatibleDC(lpDrawItemStruct->hDC);
HBITMAP hMemBmp = CreateCompatibleBitmap(lpDrawItemStruct->hDC,
scrW, scrH);
HBITMAP hOldBmp = (HBITMAP)SelectObject(memDC1, hMemBmp);
CDC *memDC=CDC::FromHandle(memDC1);
.
.
if(m_pImgClose)
m_pImgClose->Draw(memDC,0,pt1,ILD_NORMAL);
.
.
memDC->DrawText(line.word[1].str, -1, &rText, DT_LEFT);
.
.
SetTextColor(memDC1,oldcolor);
.
.
BitBlt(lpDrawItemStruct->hDC, 0, 0, scrW, scrH, memDC1, 0, 0,
SRCCOPY);
SelectObject(memDC1, hOldBmp);
DeleteObject(hMemBmp);
DeleteDC(memDC1);
}
for some resone its doing the background black instead of white as it was before the double buffer.
if anyone know what is my problem ,I would be very greatfull for him.
AnswerRe: double buffering Pin
Sauro Viti4-Oct-10 2:44
professionalSauro Viti4-Oct-10 2:44 
GeneralRe: double buffering Pin
aangerma4-Oct-10 3:20
aangerma4-Oct-10 3:20 
QuestionError Message Pin
ganesh_IT3-Oct-10 21:54
ganesh_IT3-Oct-10 21:54 
AnswerRe: Error Message Pin
Richard MacCutchan3-Oct-10 22:27
mveRichard MacCutchan3-Oct-10 22:27 
GeneralRe: Error Message Pin
Sauro Viti3-Oct-10 23:39
professionalSauro Viti3-Oct-10 23:39 
GeneralRe: Error Message Pin
Richard MacCutchan4-Oct-10 0:48
mveRichard MacCutchan4-Oct-10 0:48 
GeneralRe: Error Message Pin
Sauro Viti4-Oct-10 1:15
professionalSauro Viti4-Oct-10 1:15 
GeneralRe: Error Message Pin
Richard MacCutchan4-Oct-10 3:16
mveRichard MacCutchan4-Oct-10 3:16 
QuestionSet ID at RunTIme Pin
john56323-Oct-10 21:23
john56323-Oct-10 21:23 
AnswerRe: Set ID at RunTIme PinPopular
Code-o-mat3-Oct-10 21:29
Code-o-mat3-Oct-10 21:29 
QuestionHow to change the position of menu bar in MFC Pin
cs893-Oct-10 20:43
cs893-Oct-10 20:43 
AnswerRe: How to change the position of menu bar in MFC Pin
«_Superman_»3-Oct-10 21:17
professional«_Superman_»3-Oct-10 21:17 
QuestionOffice 2010 style in Windows Ribbon Framework? Pin
o m n i3-Oct-10 10:00
o m n i3-Oct-10 10:00 
AnswerRe: Office 2010 style in Windows Ribbon Framework? Pin
Alain Rist4-Oct-10 20:32
Alain Rist4-Oct-10 20:32 
QuestionRegGetValue / Win32 Pin
Fareed Rizkalla3-Oct-10 1:09
Fareed Rizkalla3-Oct-10 1:09 
AnswerRe: RegGetValue / Win32 Pin
Richard MacCutchan3-Oct-10 1:43
mveRichard MacCutchan3-Oct-10 1:43 
AnswerRe: RegGetValue / Win32 Pin
Jonathan Davies3-Oct-10 1:48
Jonathan Davies3-Oct-10 1:48 

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.