Click here to Skip to main content
15,916,692 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionparsing error on viewing class wizard Pin
swaapu29-Nov-05 1:23
swaapu29-Nov-05 1:23 
AnswerRe: parsing error on viewing class wizard Pin
Cedric Moonen29-Nov-05 2:16
Cedric Moonen29-Nov-05 2:16 
QuestionMSXML6.lib error on Debug build Pin
Shiva Prasad29-Nov-05 1:07
Shiva Prasad29-Nov-05 1:07 
AnswerRe: MSXML6.lib error on Debug build Pin
toxcct29-Nov-05 2:13
toxcct29-Nov-05 2:13 
QuestionGDI+ Bitmap/Graphics::DrawImage(..) Question.. Pin
fetox29-Nov-05 0:54
fetox29-Nov-05 0:54 
QuestionSaving Graphics in VC++ Pin
vijayganesh28-Nov-05 23:46
vijayganesh28-Nov-05 23:46 
AnswerRe: Saving Graphics in VC++ Pin
Rajesh R Subramanian29-Nov-05 1:26
professionalRajesh R Subramanian29-Nov-05 1:26 
QuestionWorker Thread related problem? Pin
dp_7628-Nov-05 23:20
dp_7628-Nov-05 23:20 
The Worker Thread in my MFC SDI Application does some heavy job.
The user can stop in between by pressing the <stop> toolbar button or Tools menu -> Stop.

To enable the Stop toolbar button before the control enters the worker thread, i have used the following line of code:

pApp->bDiskReadProcessStarted = TRUE;
pframe->pToolBar->SendMessage(TB_ENABLEBUTTON,ID_TOOLS_STOPCURRENTPROCESS,(LPARAM)MAKELONG(TRUE,0));

& then is the code for the creation of the Worker Thread:

pApp->pWorkerThread = AfxBeginThread(MaskingFiles_WorkerThread, (void*)pApp->MFC_Obj);


BUT as a result of the above code the Stop button is enabled only after the worker thread has completed. where as i wanted it to be enables before the start of worker thread.

code in the OnUpdateUI for Stop button:

void CMainFrame::OnUpdateToolsStopcurrentprocess(CCmdUI* pCmdUI)
{
CStellarPhoenixApp *pApp = (CStellarPhoenixApp*)AfxGetApp();

if(pApp->bDiskReadProcessStarted)
{
pCmdUI->Enable(TRUE);
}
else
pCmdUI->Enable(FALSE);
}

I donot understand y this is happening.

Waiting for suggestions

dp_76Sleepy | :zzz:
QuestionOpenGL and very big images Pin
Russell'28-Nov-05 22:15
Russell'28-Nov-05 22:15 
NewsRe: OpenGL and very big images Pin
Rajesh R Subramanian28-Nov-05 23:20
professionalRajesh R Subramanian28-Nov-05 23:20 
Questionradio buttons and check boxes in vc++ Pin
Member 158774128-Nov-05 21:36
Member 158774128-Nov-05 21:36 
AnswerRe: radio buttons and check boxes in vc++ Pin
toxcct28-Nov-05 21:59
toxcct28-Nov-05 21:59 
GeneralRe: radio buttons and check boxes in vc++ Pin
Rajesh R Subramanian28-Nov-05 22:54
professionalRajesh R Subramanian28-Nov-05 22:54 
GeneralRe: radio buttons and check boxes in vc++ Pin
toxcct28-Nov-05 22:57
toxcct28-Nov-05 22:57 
JokeRe: radio buttons and check boxes in vc++ Pin
BadKarma28-Nov-05 23:25
BadKarma28-Nov-05 23:25 
AnswerRe: radio buttons and check boxes in vc++ Pin
ashwin2029-Nov-05 2:08
ashwin2029-Nov-05 2:08 
QuestionLocal printer queue Pin
micutzu28-Nov-05 21:32
micutzu28-Nov-05 21:32 
Questioncalculator problem Pin
Member 158774128-Nov-05 21:20
Member 158774128-Nov-05 21:20 
QuestionSetUnhandledExceptionFilter() difference Windows 2K and XP Pin
StHubi28-Nov-05 21:11
StHubi28-Nov-05 21:11 
QuestionCan't display column if the width is over 32767 in CListCtrl Pin
neil.kuo28-Nov-05 19:00
neil.kuo28-Nov-05 19:00 
AnswerRe: Can't display column if the width is over 32767 in CListCtrl Pin
Gavin Taylor28-Nov-05 19:23
professionalGavin Taylor28-Nov-05 19:23 
JokeRe: Can't display column if the width is over 32767 in CListCtrl Pin
Rajesh R Subramanian28-Nov-05 19:54
professionalRajesh R Subramanian28-Nov-05 19:54 
GeneralRe: Can't display column if the width is over 32767 in CListCtrl Pin
Gavin Taylor28-Nov-05 20:05
professionalGavin Taylor28-Nov-05 20:05 
GeneralRe: Can't display column if the width is over 32767 in CListCtrl Pin
neil.kuo28-Nov-05 20:10
neil.kuo28-Nov-05 20:10 
GeneralRe: Can't display column if the width is over 32767 in CListCtrl Pin
Gavin Taylor28-Nov-05 20:22
professionalGavin Taylor28-Nov-05 20:22 

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.