Click here to Skip to main content
15,890,185 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 20:48
professionalRajesh R Subramanian7-Dec-10 20:48 
GeneralRe: How can identify why AfxBeginThread return value is NULL? Pin
bleedingfingers7-Dec-10 23:30
bleedingfingers7-Dec-10 23:30 
GeneralRe: How can identify why AfxBeginThread return value is NULL? Pin
Le@rner7-Dec-10 23:35
Le@rner7-Dec-10 23:35 
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 
AnswerRe: How can identify why AfxBeginThread return value is NULL? Pin
trotwa7-Dec-10 22:18
trotwa7-Dec-10 22:18 
GeneralRe: How can identify why AfxBeginThread return value is NULL? Pin
Le@rner7-Dec-10 22:20
Le@rner7-Dec-10 22:20 
GeneralRe: How can identify why AfxBeginThread return value is NULL? Pin
Rajesh R Subramanian7-Dec-10 22:57
professionalRajesh R Subramanian7-Dec-10 22:57 
QuestionCToolBar Button Flickers. [modified] Pin
janaswamy uday7-Dec-10 17:54
janaswamy uday7-Dec-10 17: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 13:40
cy163@hotmail.com7-Dec-10 13:40 
QuestionVC FLEX Pin
cy163@hotmail.com7-Dec-10 13:38
cy163@hotmail.com7-Dec-10 13:38 
AnswerRe: VC FLEX Pin
KingsGambit7-Dec-10 21:43
KingsGambit7-Dec-10 21:43 
AnswerRe: VC FLEX Pin
Cool_Dev8-Dec-10 21:17
Cool_Dev8-Dec-10 21:17 
Question890916 - CTabbedPane Pin
ilostmyid27-Dec-10 2:32
professionalilostmyid27-Dec-10 2:32 
AnswerRe: 890916 - CTabbedPane Pin
David Crow7-Dec-10 3:25
David Crow7-Dec-10 3:25 
GeneralRe: 890916 - CTabbedPane Pin
ilostmyid27-Dec-10 4:58
professionalilostmyid27-Dec-10 4:58 
QuestionHow to create a forward rule in MS Outlook programmatically using MAPI. Pin
jayprakash247-Dec-10 0:38
jayprakash247-Dec-10 0:38 
AnswerRe: How to create a forward rule in MS Outlook programmatically using MAPI. Pin
Rajesh R Subramanian7-Dec-10 1:57
professionalRajesh R Subramanian7-Dec-10 1:57 
GeneralRe: How to create a forward rule in MS Outlook programmatically using MAPI. Pin
jayprakash247-Dec-10 23:06
jayprakash247-Dec-10 23:06 
GeneralRe: How to create a forward rule in MS Outlook programmatically using MAPI. Pin
Rajesh R Subramanian8-Dec-10 1:54
professionalRajesh R Subramanian8-Dec-10 1:54 
Questionpassing control variable in a function....?? Pin
AmbiguousName6-Dec-10 22:37
AmbiguousName6-Dec-10 22:37 
AnswerRe: passing control variable in a function....?? Pin
Cedric Moonen6-Dec-10 22:51
Cedric Moonen6-Dec-10 22:51 
GeneralRe: passing control variable in a function....?? Pin
AmbiguousName6-Dec-10 23:14
AmbiguousName6-Dec-10 23:14 
AnswerRe: passing control variable in a function....?? Pin
Rajesh R Subramanian6-Dec-10 23:46
professionalRajesh R Subramanian6-Dec-10 23:46 
GeneralRe: passing control variable in a function....?? Pin
d10429-Mar-11 20:29
d10429-Mar-11 20:29 
GeneralRe: passing control variable in a function....?? Pin
Rajesh R Subramanian29-Mar-11 20:45
professionalRajesh R Subramanian29-Mar-11 20: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.