Click here to Skip to main content
15,561,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Device Context Pin
Richard MacCutchan19-Dec-10 23:45
mveRichard MacCutchan19-Dec-10 23:45 
AnswerRe: Device Context Pin
bleedingfingers20-Dec-10 1:05
bleedingfingers20-Dec-10 1:05 
GeneralRe: Device Context Pin
002comp20-Dec-10 1:49
002comp20-Dec-10 1:49 
GeneralRe: Device Context Pin
Richard MacCutchan20-Dec-10 2:02
mveRichard MacCutchan20-Dec-10 2:02 
QuestionRe: Device Context Pin
bleedingfingers20-Dec-10 2:05
bleedingfingers20-Dec-10 2:05 
AnswerRe: Device Context Pin
002comp20-Dec-10 2:13
002comp20-Dec-10 2:13 
AnswerRe: Device Context Pin
pasztorpisti22-Dec-10 0:36
pasztorpisti22-Dec-10 0:36 
QuestionCToolBar Flickers Pin
janaswamy uday19-Dec-10 19:33
janaswamy uday19-Dec-10 19:33 
Hi All,

I am getting Flicker for Toolbar which is Owner Drawn. I am creating a SplitterWnd which has a Form View in Right Side Pane and TreeView in Leftside Pane. There is no flicer in FormView but when i am trying to Disable the Icons in CToolbar for some Condition it is some times Continuosly Flickers i could not understand why this happens.

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))))
return false;
else
return true;

}

return true;
}
AnswerRe: CToolBar Flickers Pin
Roger Allen10-Jan-11 2:53
Roger Allen10-Jan-11 2:53 
GeneralRe: CToolBar Flickers Pin
janaswamy uday11-Jan-11 0:36
janaswamy uday11-Jan-11 0:36 
Questionvariable 'bool' / header stdbool.h Pin
Randy12719-Dec-10 17:30
Randy12719-Dec-10 17:30 
AnswerRe: variable 'bool' / header stdbool.h [modified] Pin
Luc Pattyn19-Dec-10 17:59
sitebuilderLuc Pattyn19-Dec-10 17:59 
GeneralRe: variable 'bool' / header stdbool.h Pin
Randy12719-Dec-10 20:38
Randy12719-Dec-10 20:38 
AnswerRe: variable 'bool' / header stdbool.h Pin
Luc Pattyn20-Dec-10 4:14
sitebuilderLuc Pattyn20-Dec-10 4:14 
AnswerRe: variable 'bool' / header stdbool.h Pin
T210219-Dec-10 20:38
T210219-Dec-10 20:38 
AnswerRe: variable 'bool' / header stdbool.h Pin
Aescleal20-Dec-10 4:55
Aescleal20-Dec-10 4:55 
QuestionWhy VC project won't run on Windows 7 Pin
ed welch19-Dec-10 11:45
ed welch19-Dec-10 11:45 
AnswerRe: Why VC project won't run on Windows 7 Pin
T210219-Dec-10 20:36
T210219-Dec-10 20:36 
GeneralRe: Why VC project won't run on Windows 7 Pin
ed welch20-Dec-10 2:31
ed welch20-Dec-10 2:31 
GeneralRe: Why VC project won't run on Windows 7 Pin
T210220-Dec-10 3:12
T210220-Dec-10 3:12 
QuestionOwner Button Width Pin
john563218-Dec-10 19:19
john563218-Dec-10 19:19 
AnswerRe: Owner Button Width Pin
Maximilien19-Dec-10 2:40
Maximilien19-Dec-10 2:40 
Question890927 - Invalid Input Format exception in sscanf_s Pin
ilostmyid218-Dec-10 2:48
professionalilostmyid218-Dec-10 2:48 
AnswerRe: 890927 - Invalid Input Format exception in sscanf_s Pin
ALLERSLIT18-Dec-10 3:59
ALLERSLIT18-Dec-10 3:59 
GeneralRe: 890927 - Invalid Input Format exception in sscanf_s Pin
ilostmyid218-Dec-10 4:19
professionalilostmyid218-Dec-10 4:19 

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.