Click here to Skip to main content
16,018,525 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem with list controll [modified] Pin
georgekjolly23-Aug-06 20:26
georgekjolly23-Aug-06 20:26 
AnswerRe: Problem with list controll Pin
Rage23-Aug-06 21:15
professionalRage23-Aug-06 21:15 
GeneralRe: Problem with list controll Pin
georgekjolly23-Aug-06 21:27
georgekjolly23-Aug-06 21:27 
GeneralRe: Problem with list controll Pin
Rage23-Aug-06 23:31
professionalRage23-Aug-06 23:31 
GeneralRe: Problem with list controll Pin
Rage23-Aug-06 23:34
professionalRage23-Aug-06 23:34 
GeneralRe: Problem with list controll Pin
Hamid Taebi24-Aug-06 1:11
professionalHamid Taebi24-Aug-06 1:11 
AnswerRe: Problem with list controll Pin
Justin Tay23-Aug-06 21:20
Justin Tay23-Aug-06 21:20 
QuestionAfxMessageBox() Pin
Anu_Bala23-Aug-06 20:16
Anu_Bala23-Aug-06 20:16 
Hi,
Im getting BitMap file from my Pic folder ..if the pic folder is not in that drive i display the bitmap file from Resource file.This is requirement.Everythign is fine.When the Pic folder is not here it will pop up this message box when i click OK then it will display BMP file resource.
As per the coding it displays the BMP from resorce when i click OK,but the message box still exist in screen i continuosly press OK it does not go,then i have to press close icon in that box for 10 times then it goes off..whats the reason anything wrong in my code?
if(AfxMessageBox("Pic Folder is not there",MB_OK)==IDOK)
{
CDC dcImage;
if(!dcImage.CreateCompatibleDC(pDC))
return;
BITMAP bm;
CBitmap* pOldBitmap;
m_bitmap.GetBitmap(&bm);
pOldBitmap = dcImage.SelectObject(&m_bitmap);
pDC->BitBlt(350,100, bm.bmWidth, bm.bmHeight, &dcImage, 0, 0, SRCCOPY);
dcImage.SelectObject(pOldBitmap);
}

Anu

AnswerRe: AfxMessageBox() Pin
prasad_som23-Aug-06 20:27
prasad_som23-Aug-06 20:27 
GeneralRe: AfxMessageBox() Pin
Anu_Bala23-Aug-06 20:28
Anu_Bala23-Aug-06 20:28 
GeneralRe: AfxMessageBox() Pin
Emilio Garavaglia23-Aug-06 21:45
Emilio Garavaglia23-Aug-06 21:45 
GeneralRe: AfxMessageBox() Pin
uday kiran janaswamy23-Aug-06 23:32
uday kiran janaswamy23-Aug-06 23:32 
QuestionResource Variables Pin
Krishnatv23-Aug-06 19:59
Krishnatv23-Aug-06 19:59 
QuestionRe: Resource Variables Pin
prasad_som23-Aug-06 20:47
prasad_som23-Aug-06 20:47 
AnswerRe: Resource Variables Pin
Hamid Taebi24-Aug-06 8:21
professionalHamid Taebi24-Aug-06 8:21 
QuestionSerialization Pin
SandhyaSri23-Aug-06 19:01
SandhyaSri23-Aug-06 19:01 
GeneralRe: Serialization Pin
prasad_som23-Aug-06 19:35
prasad_som23-Aug-06 19:35 
AnswerRe: Serialization Pin
toxcct23-Aug-06 21:27
toxcct23-Aug-06 21:27 
QuestionRe: Serialization Pin
David Crow24-Aug-06 3:13
David Crow24-Aug-06 3:13 
QuestionAdding a COM reference in vc++ .net Pin
tmoney10123-Aug-06 15:46
tmoney10123-Aug-06 15:46 
AnswerRe: Adding a COM reference in vc++ .net Pin
jk chan23-Aug-06 16:21
jk chan23-Aug-06 16:21 
AnswerRe: Adding a COM reference in vc++ .net Pin
prasad_som23-Aug-06 19:24
prasad_som23-Aug-06 19:24 
GeneralRe: Adding a COM reference in vc++ .net Pin
tmoney10123-Aug-06 20:14
tmoney10123-Aug-06 20:14 
GeneralRe: Adding a COM reference in vc++ .net Pin
prasad_som23-Aug-06 20:44
prasad_som23-Aug-06 20:44 
Questionreading the active font in a window Pin
phani_8923-Aug-06 15:21
phani_8923-Aug-06 15:21 

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.