Click here to Skip to main content
15,566,691 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can identify why AfxBeginThread return value is NULL? Pin
Rajesh R Subramanian7-Dec-10 21:48
professionalRajesh R Subramanian7-Dec-10 21:48 
GeneralRe: How can identify why AfxBeginThread return value is NULL? Pin
bleedingfingers8-Dec-10 0:30
bleedingfingers8-Dec-10 0:30 
GeneralRe: How can identify why AfxBeginThread return value is NULL? Pin
Le@rner8-Dec-10 0:35
Le@rner8-Dec-10 0:35 
GeneralRe: How can identify why AfxBeginThread return value is NULL? Pin
Rajesh R Subramanian8-Dec-10 0:57
professionalRajesh R Subramanian8-Dec-10 0:57 
AnswerRe: How can identify why AfxBeginThread return value is NULL? Pin
trotwa7-Dec-10 23:18
trotwa7-Dec-10 23:18 
GeneralRe: How can identify why AfxBeginThread return value is NULL? Pin
Le@rner7-Dec-10 23:20
Le@rner7-Dec-10 23:20 
GeneralRe: How can identify why AfxBeginThread return value is NULL? Pin
Rajesh R Subramanian7-Dec-10 23:57
professionalRajesh R Subramanian7-Dec-10 23:57 
QuestionCToolBar Button Flickers. [modified] Pin
janaswamy uday7-Dec-10 18:54
janaswamy uday7-Dec-10 18:54 
Hi All,

I am getting flicker when Disable the CToolBar Buttons when ON_UPDATE_COMMAND_UI message with
CmdUI->Enable(FALSE) twice depending on some condition.
But everytime I move my mouse the grayed-out button flickers.
Un-grayed buttons do not flicker. Any Prolem whith this.

Code
-------


void CMainFrame::OnUpdateFileDeleteplans(CCmdUI* pCmdUI)
{
bool bExecuteSQLWin = false;

if(bExecuteSQLWin)
pCmdUI->Enable(FALSE);
else
pCmdUI->Enable();

pCmdUI->Enable(CheckOpenPlans()); --> Here i added with a Function CheckOpenPlans().......>==========//

}

bool CMainFrame::CheckOpenPlans()
{
CMDIChildWnd* MyWnd = NULL;
MyWnd = MDIGetActive();
CView* pView = NULL;

if(MyWnd != NULL)
{
pView = (CView*) MyWnd->GetActiveView();
if((pView->IsKindOf(RUNTIME_CLASS(CSelectQueryView)) || pView->IsKindOf(RUNTIME_CLASS(OpenPlansTreeView))))
{
MyWnd = NULL;
pView = NULL;
return false;
}
else
{
MyWnd = NULL;
pView = NULL;
return true;
}
}

return true;
}

modified on Monday, December 20, 2010 12:29 AM

QuestionIs there any DB2 driver for VC Pin
cy163@hotmail.com7-Dec-10 14:40
cy163@hotmail.com7-Dec-10 14:40 
QuestionVC FLEX Pin
cy163@hotmail.com7-Dec-10 14:38
cy163@hotmail.com7-Dec-10 14:38 
AnswerRe: VC FLEX Pin
KingsGambit7-Dec-10 22:43
KingsGambit7-Dec-10 22:43 
AnswerRe: VC FLEX Pin
Cool_Dev8-Dec-10 22:17
Cool_Dev8-Dec-10 22:17 
Question890916 - CTabbedPane Pin
ilostmyid27-Dec-10 3:32
professionalilostmyid27-Dec-10 3:32 
AnswerRe: 890916 - CTabbedPane Pin
David Crow7-Dec-10 4:25
David Crow7-Dec-10 4:25 
GeneralRe: 890916 - CTabbedPane Pin
ilostmyid27-Dec-10 5:58
professionalilostmyid27-Dec-10 5:58 
QuestionHow to create a forward rule in MS Outlook programmatically using MAPI. Pin
jayprakash247-Dec-10 1:38
jayprakash247-Dec-10 1:38 
AnswerRe: How to create a forward rule in MS Outlook programmatically using MAPI. Pin
Rajesh R Subramanian7-Dec-10 2:57
professionalRajesh R Subramanian7-Dec-10 2:57 
GeneralRe: How to create a forward rule in MS Outlook programmatically using MAPI. Pin
jayprakash248-Dec-10 0:06
jayprakash248-Dec-10 0:06 
GeneralRe: How to create a forward rule in MS Outlook programmatically using MAPI. Pin
Rajesh R Subramanian8-Dec-10 2:54
professionalRajesh R Subramanian8-Dec-10 2:54 
Questionpassing control variable in a function....?? Pin
AmbiguousName6-Dec-10 23:37
AmbiguousName6-Dec-10 23:37 
AnswerRe: passing control variable in a function....?? Pin
Cedric Moonen6-Dec-10 23:51
Cedric Moonen6-Dec-10 23:51 
GeneralRe: passing control variable in a function....?? Pin
AmbiguousName7-Dec-10 0:14
AmbiguousName7-Dec-10 0:14 
AnswerRe: passing control variable in a function....?? Pin
Rajesh R Subramanian7-Dec-10 0:46
professionalRajesh R Subramanian7-Dec-10 0:46 
GeneralRe: passing control variable in a function....?? Pin
d10429-Mar-11 21:29
d10429-Mar-11 21:29 
GeneralRe: passing control variable in a function....?? Pin
Rajesh R Subramanian29-Mar-11 21:45
professionalRajesh R Subramanian29-Mar-11 21:45 

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.